toJson method
Converts the GeoJsonFeature to a Map with keys 'type', 'properties' and 'geometry'.
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
'type': type,
'properties': properties,
'geometry': geometry.toJson(),
if (bbox != null)
'bbox': <double>[
bbox![0].longitude,
bbox![0].latitude,
bbox![1].longitude,
bbox![1].latitude,
],
};