fromJson static method

MPRouteCoordinate? fromJson(
  1. dynamic json
)

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

Implementation

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