fromJson static method

MPMultiPolygon? fromJson(
  1. dynamic json
)

Attempts to build a MPMultiPolygon from a JSON object, this method will decode the object if needed

Implementation

static MPMultiPolygon? fromJson(json) => json != null && json != "null"
    ? MPMultiPolygon._fromJson(json is String ? jsonDecode(json) : json)
    : null;