BarcodeResult constructor

BarcodeResult(
  1. Map<String, dynamic> nativeBarcodeResult
)

Implementation

BarcodeResult(Map<String, dynamic> nativeBarcodeResult) {
    this.barcodeType = BarcodeType.values[nativeBarcodeResult['barcodeType']];
    this.rawData = nativeBarcodeResult['rawData'];
    this.stringData = nativeBarcodeResult['stringData'];
    this.uncertain = nativeBarcodeResult['uncertain'];
    this.firstName = nativeBarcodeResult['firstName'];
    this.middleName = nativeBarcodeResult['middleName'];
    this.lastName = nativeBarcodeResult['lastName'];
    this.fullName = nativeBarcodeResult['fullName'];
    this.additionalNameInformation = nativeBarcodeResult['additionalNameInformation'];
    this.address = nativeBarcodeResult['address'];
    this.placeOfBirth = nativeBarcodeResult['placeOfBirth'];
    this.nationality = nativeBarcodeResult['nationality'];
    this.race = nativeBarcodeResult['race'];
    this.religion = nativeBarcodeResult['religion'];
    this.profession = nativeBarcodeResult['profession'];
    this.maritalStatus = nativeBarcodeResult['maritalStatus'];
    this.residentialStatus = nativeBarcodeResult['residentialStatus'];
    this.employer = nativeBarcodeResult['employer'];
    this.sex = nativeBarcodeResult['sex'];
    this.dateOfBirth = nativeBarcodeResult['dateOfBirth'] != null ? Date(Map<String, dynamic>.from(nativeBarcodeResult['dateOfBirth'])) : null;
    this.dateOfBirth = nativeBarcodeResult['dateOfIssue'] != null ? Date(Map<String, dynamic>.from(nativeBarcodeResult['dateOfIssue'])) : null;
    this.dateOfBirth = nativeBarcodeResult['dateOfExpiry'] != null ? Date(Map<String, dynamic>.from(nativeBarcodeResult['dateOfExpiry'])) : null;
    this.documentNumber = nativeBarcodeResult['documentNumber'];
    this.personalIdNumber = nativeBarcodeResult['personalIdNumber'];
    this.documentAdditionalNumber = nativeBarcodeResult['documentAdditionalNumber'];
    this.issuingAuthority = nativeBarcodeResult['issuingAuthority'];
    this.street = nativeBarcodeResult['street'];
    this.postalCode = nativeBarcodeResult['postalCode'];
    this.city = nativeBarcodeResult['city'];
    this.jurisdiction = nativeBarcodeResult['jurisdiction'];
    this.driverLicenseDetailedInfo = nativeBarcodeResult['driverLicenseDetailedInfo'] != null ? DriverLicenseDetailedInfo(Map<String, dynamic>.from(nativeBarcodeResult['driverLicenseDetailedInfo'])) : null;
    this.empty = nativeBarcodeResult['empty'];
    this.extendedElements = nativeBarcodeResult['extendedElements'] != null ? BarcodeElements(Map<String, dynamic>.from(nativeBarcodeResult['extendedElements'])) : null;
}