code: def to_representation(self, instance):
          
          ret = OrderedDict()
          readable_fields = [
              field for field in self.fields.values()
              if not field.write_only
          ]
  
          for field in readable_fields:
              try:
                  field_representation = self._get_field_representation(field, instance)
                  ret[field.field_name] = field_representation
              except SkipField:
                  continue
  
          return ret
docs: Object instance -> Dict of primitive datatypes.