def get_properties(self, instance, fields):
        properties = OrderedDict()

        for field in fields:
            if field.write_only:
                continue
            value = field.get_attribute(instance)
            representation = None
            if value is not None:
                representation = field.to_representation(value)
            properties[field.field_name] = representation

        return properties
Get the feature metadata which will be used for the GeoJSON
dataset/ETHPy150Open djangonauts/django-rest-framework-gis/rest_framework_gis/serializers.py/GeoFeatureModelSerializer.get_properties