fromJson static method

MPSolution? fromJson(
  1. dynamic json
)

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

Implementation

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