parameters: (self, values: dict[ContactField, str])
return_statement: return mods
docstring: Updates custom field values of this contact
docstring_summary: Updates custom field values of this contact
docstring_tokens: Updates custom field values of this contact
function: def update_fields(self, values: dict[ContactField, str]) -> list[modifiers.Modifier]:
          """
          Updates custom field values of this contact
          """
          mods = []
  
          for field, value in values.items():
              field_ref = modifiers.FieldRef(key=field.key, name=field.label)
              mods.append(modifiers.Field(field=field_ref, value=value))
  
          return mods
function_tokens: def update_fields ( self , values : dict [ ContactField , str ] ) -> list [ modifiers . Modifier ] : mods = [ ] for field , value in values . items ( ) : field_ref = modifiers . FieldRef ( key = field . key , name = field . label ) mods . append ( modifiers . Field ( field = field_ref , value = value ) ) return mods