fromJson static method
Allows you to deserialize object.
Implementation
static OpticalStatus? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = OpticalStatus();
result._overallStatus =
CheckResult.getByValue(jsonObject["overallStatus"])!;
result._mrz = CheckResult.getByValue(jsonObject["mrz"])!;
result._text = CheckResult.getByValue(jsonObject["text"])!;
result._docType = CheckResult.getByValue(jsonObject["docType"])!;
result._security = CheckResult.getByValue(jsonObject["security"])!;
result._imageQA = CheckResult.getByValue(jsonObject["imageQA"])!;
result._expiry = CheckResult.getByValue(jsonObject["expiry"])!;
result._vds = CheckResult.getByValue(jsonObject["vds"])!;
result._pagesCount = jsonObject["pagesCount"]!;
return result;
}