fromJson static method
Allows you to deserialize object.
Implementation
static File? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = File();
result._readingTime = jsonObject["readingTime"];
result._type = RFIDDataFileType.getByValue(jsonObject["type"])!;
result._typeName = jsonObject["typeName"];
result._pAStatus = RFIDErrorCodes.getByValue(jsonObject["pAStatus"])!;
result._readingStatus =
RFIDErrorCodes.getByValue(jsonObject["readingStatus"])!;
result._fileID = jsonObject["fileID"];
result._fileData = FileData.fromJson(jsonObject["fileData"]);
result._certificates =
SecurityObjectCertificates.fromJson(jsonObject["certificates"]);
result._docFieldsText = jsonObject["docFieldsText"].cast<int>();
result._docFieldsGraphics = jsonObject["docFieldsGraphics"].cast<int>();
result._docFieldsOriginals = jsonObject["docFieldsOriginals"].cast<int>();
result._notifications = jsonObject["notifications"].cast<int>();
return result;
}