Converts GeoJSON object to a Map.
@override Map<String, dynamic> toMap() { return { 'type': type.value, 'coordinates': coordinates, }; }