PassportData constructor
PassportData(
- Map dataMap
Implementation
PassportData(Map<dynamic, dynamic> dataMap) : super(dataMap) {
country =
dataMap.getValue<String>(Inbound.passportCountry); //note the capital C!
birthPlace = dataMap.getValue<String>(Inbound.birthPlace);
issuePlace = dataMap.getValue<String>(Inbound.issuePlace);
birthdate = dataMap.getValue<String>(Inbound.birthdate);
documentAdditionalNumber =
dataMap.getValue<String>(Inbound.documentAdditionalNumber);
expirationDate = dataMap.getValue<String>(Inbound.expirationDate);
firstName = dataMap.getValue<String>(Inbound.firstName);
gender = dataMap.getValue<String>(Inbound.gender);
imageUrl = dataMap.getValue<String>(Inbound.imageUrl);
isoNumericCountryCode =
dataMap.getValue<String>(Inbound.isoNumericCountryCode);
issueDate = dataMap.getValue<String>(Inbound.issueDate);
lastName = dataMap.getValue<String>(Inbound.lastName);
nationality = dataMap.getValue<String>(Inbound.nationality);
serial = dataMap.getValue<String>(Inbound.serial);
address = dataMap.getValue<String>(Inbound.address);
}