GeoJsonFeatureCollection.fromJson constructor

GeoJsonFeatureCollection.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GeoJsonFeatureCollection.fromJson(Map<String, dynamic> json) {
  final feats = json['features'] as List;
  return GeoJsonFeatureCollection(
    feats
        .map((f) => GeoJsonFeature.fromJson(f as Map<String, dynamic>))
        .toList(),
  );
}