fromJson static method

FileData? fromJson(
  1. dynamic jsonObject
)

Allows you to serialize object.

Implementation

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

  result._length = jsonObject["length"];
  result._type = jsonObject["type"];
  result._status = jsonObject["status"];
  result._data = jsonObject["data"];

  return result;
}