fromJson static method

Value? fromJson(
  1. dynamic jsonObject
)

Implementation

static Value? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new Value();

  result.length = jsonObject["length"];
  result.type = jsonObject["type"];
  result.status = jsonObject["status"];
  result.data = jsonObject["data"];
  result.format = jsonObject["format"];

  return result;
}