toJson method Null safety

Map<String, dynamic> toJson()

Converts the Feature to a JSON object. (Not actually possible, as a base feature has no geometry)

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': 'Feature',
    'properties': properties,
  };
}