GeoJSONMultiPolygon.fromJSON constructor

GeoJSONMultiPolygon.fromJSON(
  1. String source
)

Constructs a GeoJSONMultiPolygon from a JSON string.

The JSON string must represent a map containing a 'type' key with the value 'MultiPolygon', and a 'coordinates' key with the value being a list of Polygon coordinate arrays.

Implementation

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