DriverLicense.fromNative constructor
Create a DriverLicense from a map.
Implementation
factory DriverLicense.fromNative(Map<Object?, Object?> data) {
return DriverLicense(
addressCity: data['addressCity'] as String?,
addressState: data['addressState'] as String?,
addressStreet: data['addressStreet'] as String?,
addressZip: data['addressZip'] as String?,
birthDate: data['birthDate'] as String?,
documentType: data['documentType'] as String?,
expiryDate: data['expiryDate'] as String?,
firstName: data['firstName'] as String?,
gender: data['gender'] as String?,
issueDate: data['issueDate'] as String?,
issuingCountry: data['issuingCountry'] as String?,
lastName: data['lastName'] as String?,
licenseNumber: data['licenseNumber'] as String?,
middleName: data['middleName'] as String?,
);
}