MrzResult constructor
MrzResult(
- Map<String, dynamic> nativeMRZResult
)
Implementation
MrzResult(Map<String, dynamic> nativeMRZResult) {
this.documentType = MrtdDocumentType.values[nativeMRZResult['documentType']];
this.primaryId = nativeMRZResult['primaryId'];
this.secondaryId = nativeMRZResult['secondaryId'];
this.issuer = nativeMRZResult['issuer'];
this.dateOfBirth = nativeMRZResult['dateOfBirth'] != null ? Date(Map<String, dynamic>.from(nativeMRZResult['dateOfBirth'])) : null;
this.documentNumber = nativeMRZResult['documentNumber'];
this.nationality = nativeMRZResult['nationality'];
this.gender = nativeMRZResult['gender'];
this.documentCode = nativeMRZResult['documentCode'];
this.dateOfExpiry = nativeMRZResult['dateOfExpiry'] != null ? Date(Map<String, dynamic>.from(nativeMRZResult['dateOfExpiry'])) : null;
this.opt1 = nativeMRZResult['opt1'];
this.opt2 = nativeMRZResult['opt2'];
this.alienNumber = nativeMRZResult['alienNumber'];
this.applicationReceiptNumber = nativeMRZResult['applicationReceiptNumber'];
this.immigrantCaseNumber = nativeMRZResult['immigrantCaseNumber'];
this.mrzText = nativeMRZResult['mrzText'];
this.mrzParsed = nativeMRZResult['mrzParsed'];
this.mrzVerified = nativeMRZResult['mrzVerified'];
this.sanitizedOpt1 = nativeMRZResult['sanitizedOpt1'];
this.sanitizedOpt2 = nativeMRZResult['sanitizedOpt2'];
this.sanitizedNationality = nativeMRZResult['sanitizedNationality'];
this.sanitizedIssuer = nativeMRZResult['sanitizedIssuer'];
this.sanitizedDocumentCode = nativeMRZResult['sanitizedDocumentCode'];
this.sanitizedDocumentNumber = nativeMRZResult['sanitizedDocumentNumber'];
this.age = nativeMRZResult['age'];
}