Converts the GeoJson object to a JSON map.
Map<String, dynamic> toJson() { return { 'type': type, 'coordinates': coordinates.toList(), }; }