def add_fields(self, field_dict):
    for key, field in field_dict.items():
      self.add_field(key, field)
Add a mapping of field names to PayloadField instances.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/base/payload.py/Payload.add_fields