<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_fields(self, field_dict):
 """Add a mapping of field names to PayloadField instances. :API: public """

    for key, field in field_dict.items():
      self.add_field(key, field)