toMap method
Converts the PowerGeoJSONFeatureCollection instance to a map.
Returns a map representation of the PowerGeoJSONFeatureCollection.
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'geoJSONPoints': geoJSONPoints
.map((PowerGeoPoint x) => x.toMap())
.toList(),
'geoJSONLineStrings': geoJSONLineStrings
.map((PowerGeoLineString x) => x.toMap())
.toList(),
'geoJSONPolygons': geoJSONPolygons
.map((PowerGeoPolygon x) => x.toMap())
.toList(),
};
}