MrzResult constructor
Represents the result of the MRZ recognition.
Implementation
MrzResult(Map<String, dynamic> nativeMRZResult) {
documentType = enumFromValue(
MRZDocumentType.values,
nativeMRZResult["documentType"],
);
primaryID = nativeMRZResult['primaryID'];
secondaryID = nativeMRZResult['secondaryID'];
issuer = nativeMRZResult['issuer'];
dateOfBirth =
nativeMRZResult['dateOfBirth'] != null
? DateResult(
Map<String, dynamic>.from(nativeMRZResult['dateOfBirth']),
)
: null;
documentNumber = nativeMRZResult['documentNumber'];
nationality = nativeMRZResult['nationality'];
gender = nativeMRZResult['gender'];
documentCode = nativeMRZResult['documentCode'];
dateOfExpiry =
nativeMRZResult['dateOfExpiry'] != null
? DateResult(
Map<String, dynamic>.from(nativeMRZResult['dateOfExpiry']),
)
: null;
opt1 = nativeMRZResult['opt1'];
opt2 = nativeMRZResult['opt2'];
rawMRZString = nativeMRZResult['rawMRZString'];
verified = nativeMRZResult['mrzVerified'];
sanitizedOpt1 = nativeMRZResult['sanitizedOpt1'];
sanitizedOpt2 = nativeMRZResult['sanitizedOpt2'];
sanitizedNationality = nativeMRZResult['sanitizedNationality'];
sanitizedIssuer = nativeMRZResult['sanitizedIssuer'];
sanitizedDocumentCode = nativeMRZResult['sanitizedDocumentCode'];
sanitizedDocumentNumber = nativeMRZResult['sanitizedDocumentNumber'];
}