Mapping custom fields from the Deal module to the contact module

Mapping custom fields from the Deal module to the contact module

Hi,

As the question suggests, could you please provide me with a custom function to map custom fields from a deal to the contact fields the deal is attached to. 
Each custom field exists both in the deal module and the contact module. 

Thanks