toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'type': 'FeatureCollection',
      'features': features.map((f) => f.toJson()).toList(),
    };