UsdlCombinedRecognizerResult constructor
UsdlCombinedRecognizerResult(
- Map<String, dynamic> nativeResult
)
Implementation
UsdlCombinedRecognizerResult(Map<String, dynamic> nativeResult)
: super(RecognizerResultState.values[nativeResult['resultState']]) {
this.documentDataMatch =
DataMatchState.values[nativeResult["documentDataMatch"]];
this.faceImage = nativeResult['faceImage'];
this.fullDocumentImage = nativeResult['fullDocumentImage'];
this.scanningFirstSideDone = nativeResult['scanningFirstSideDone'];
this.optionalElements = nativeResult['optionalElements'] != null
? List<String>.from(nativeResult['optionalElements'])
: null;
this.rawData = nativeResult['rawData'];
this.rawStringData = nativeResult['rawStringData'];
this.uncertain = nativeResult['uncertain'];
this.fields = nativeResult['fields'] != null
? List<String>.from(nativeResult['fields'])
: null;
this.firstName = nativeResult['firstName'];
this.middleName = nativeResult['middleName'];
this.lastName = nativeResult['lastName'];
this.fullName = nativeResult['fullName'];
this.nameSuffix = nativeResult['nameSuffix'];
this.address = nativeResult['address'];
this.documentNumber = nativeResult['documentNumber'];
this.sex = nativeResult['sex'];
this.restrictions = nativeResult['restrictions'];
this.endorsements = nativeResult['endorsements'];
this.vehicleClass = nativeResult['vehicleClass'];
this.dateOfBirth = nativeResult['dateOfBirth'] != null
? Date(nativeResult['dateOfBirth'])
: null;
this.dateOfIssue = nativeResult['dateOfIssue'] != null
? Date(nativeResult['dateOfIssue'])
: null;
this.dateOfExpiry = nativeResult['dateOfExpiry'] != null
? Date(nativeResult['dateOfExpiry'])
: null;
this.age = nativeResult['age'];
}