FeatureCollection<T extends GeometryObject>.fromJson constructor

FeatureCollection<T extends GeometryObject>.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FeatureCollection.fromJson(Map<String, dynamic> json) =>
    FeatureCollection(
      bbox: json['bbox'] == null
          ? null
          : BBox.fromJson(
              (json['bbox'] as List).map((e) => e as num).toList()),
      features: (json['features'] as List<dynamic>?)
              ?.map((e) => Feature<T>.fromJson(e as Map<String, dynamic>))
              .toList() ??
          const [],
    );