UsdlRecognizerResult constructor
UsdlRecognizerResult(
- Map<String, dynamic> nativeResult
)
Implementation
UsdlRecognizerResult(Map<String, dynamic> nativeResult)
: super(RecognizerResultState.values[nativeResult['resultState']]) {
this.optionalElements = List<String>.from(nativeResult['optionalElements']);
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
? new Date(Map<String, dynamic>.from(nativeResult['dateOfBirth']))
: null;
this.dateOfIssue = nativeResult['dateOfIssue'] != null
? new Date(Map<String, dynamic>.from(nativeResult['dateOfIssue']))
: null;
this.dateOfExpiry = nativeResult['dateOfExpiry'] != null
? new Date(Map<String, dynamic>.from(nativeResult['dateOfExpiry']))
: null;
this.age = nativeResult['age'];
this.street = nativeResult['street'];
this.postalCode = nativeResult['postalCode'];
this.city = nativeResult['city'];
this.jurisdiction = nativeResult['jurisdiction'];
}