IdBarcodeRecognizerResult constructor

IdBarcodeRecognizerResult(
  1. Map<String, dynamic> nativeResult
)

Implementation

IdBarcodeRecognizerResult(Map<String, dynamic> nativeResult): super(RecognizerResultState.values[nativeResult['resultState']]) {

    this.additionalNameInformation = nativeResult["additionalNameInformation"];

    this.address = nativeResult["address"];

    this.age = nativeResult["age"];

    this.barcodeType = BarcodeType.values[nativeResult["barcodeType"]];

    this.city = nativeResult["city"];

    this.dateOfBirth = nativeResult["dateOfBirth"] != null ? Date(Map<String, dynamic>.from(nativeResult["dateOfBirth"])) : null;

    this.dateOfExpiry = nativeResult["dateOfExpiry"] != null ? Date(Map<String, dynamic>.from(nativeResult["dateOfExpiry"])) : null;

    this.dateOfIssue = nativeResult["dateOfIssue"] != null ? Date(Map<String, dynamic>.from(nativeResult["dateOfIssue"])) : null;

    this.documentAdditionalNumber = nativeResult["documentAdditionalNumber"];

    this.documentNumber = nativeResult["documentNumber"];

    this.documentType = IdBarcodeDocumentType.values[nativeResult["documentType"]];

    this.employer = nativeResult["employer"];

    this.endorsements = nativeResult["endorsements"];

    this.expired = nativeResult["expired"];

    this.extendedElements = nativeResult["extendedElements"];

    this.firstName = nativeResult["firstName"];

    this.fullName = nativeResult["fullName"];

    this.issuingAuthority = nativeResult["issuingAuthority"];

    this.jurisdiction = nativeResult["jurisdiction"];

    this.lastName = nativeResult["lastName"];

    this.maritalStatus = nativeResult["maritalStatus"];

    this.middleName = nativeResult["middleName"];

    this.nationality = nativeResult["nationality"];

    this.personalIdNumber = nativeResult["personalIdNumber"];

    this.placeOfBirth = nativeResult["placeOfBirth"];

    this.postalCode = nativeResult["postalCode"];

    this.profession = nativeResult["profession"];

    this.race = nativeResult["race"];

    this.rawData = nativeResult["rawData"];

    this.religion = nativeResult["religion"];

    this.residentialStatus = nativeResult["residentialStatus"];

    this.restrictions = nativeResult["restrictions"];

    this.sex = nativeResult["sex"];

    this.street = nativeResult["street"];

    this.stringData = nativeResult["stringData"];

    this.uncertain = nativeResult["uncertain"];

    this.vehicleClass = nativeResult["vehicleClass"];

}