GeometryCollection.fromJson constructor

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

Implementation

factory GeometryCollection.fromJson(Map<String, dynamic> json) =>
    GeometryCollection(
      bbox: json['bbox'] == null
          ? null
          : BBox.fromJson(
              (json['bbox'] as List).map((e) => e as num).toList(),
            ),
      geometries: (json['geometries'] as List?)
              ?.map((e) => GeometryType.deserialize(e))
              .toList() ??
          const [],
    );