fromJson static method

FileData? fromJson(
  1. dynamic jsonObject
)

Implementation

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

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

  return result;
}