GeoJSONGeometryCollection.fromJSON constructor

GeoJSONGeometryCollection.fromJSON(
  1. String source
)

Constructs a new Geometry Collection from a JSON string.

The JSON string must represent a valid Geometry Collection.

Implementation

factory GeoJSONGeometryCollection.fromJSON(String source) =>
    GeoJSONGeometryCollection.fromMap(json.decode(source));