in src/mapillary/models/geojson.py [0:0]
def to_dict(self):
"""Return the dict format representation of the GeoJSON"""
return {
"type": self.type,
"features": [feature.to_dict() for feature in self.features]
if self.features != []
else [],
}