deserialize static method

GeometryObject deserialize(
  1. Map<String, dynamic> json
)

Implementation

static GeometryObject deserialize(Map<String, dynamic> json) {
  return json['type'] == 'GeometryCollection' ||
          json['type'] == GeoJSONObjectType.geometryCollection
      ? GeometryCollection.fromJson(json)
      : GeometryType.deserialize(json);
}