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 = _intListFrom(jsonObject["docFieldsText"])!;
result._docFieldsGraphics = _intListFrom(jsonObject["docFieldsGraphics"])!;
result._docFieldsOriginals =
_intListFrom(jsonObject["docFieldsOriginals"])!;
result._notifications = _intListFrom(jsonObject["notifications"])!;
return result;
}