toJson method
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': 'Feature',
'geometry': {
'type': 'Polygon',
'coordinates': coordinates
.map((ring) => ring.coordinates.map((c) => c.toJson()).toList())
.toList()
},
'properties': properties,
};
}