toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'type': 'Feature',
      if (id != null) 'id': id,
      'geometry': geometry?.toJson(),
      'properties': properties,
    };