docs: def from_dict(cls, d):
          """Transform the dict to a field object and return the field."""
          kwargs = {}
          for key, val in d.iteritems():
              if key.startswith('display'): # includes phone.display_international
                  continue
              if key.startswith('@'):
                  key = key[1:]
              if key == 'type':
                  key = 'type_'
              elif key == 'valid_since':
                  val = str_to_datetime(val)
              elif key == 'date_range':
                  val = DateRange.from_dict(val)
              kwargs[key.encode('ascii')] = val
          return cls(**kwargs)