fromJson static method

Application? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._type = jsonObject["type"];
  result._status = RFIDErrorCodes.getByValue(jsonObject["status"])!;
  result._applicationID = jsonObject["applicationID"];
  result._dataHashAlgorithm = jsonObject["dataHashAlgorithm"];
  result._unicodeVersion = jsonObject["unicodeVersion"];
  result._version = jsonObject["version"];
  for (var item in jsonObject["files"]) {
    result._files.addSafe(File.fromJson(item));
  }

  return result;
}