fromMap static method
override
Construct from Map.
Implementation
static PassportElement? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'passportElementTemporaryRegistration':
return PassportElementTemporaryRegistration.fromMap(_map);
case 'passportElementRentalAgreement':
return PassportElementRentalAgreement.fromMap(_map);
case 'passportElementUtilityBill':
return PassportElementUtilityBill.fromMap(_map);
case 'passportElementPassportRegistration':
return PassportElementPassportRegistration.fromMap(_map);
case 'passportElementPassport':
return PassportElementPassport.fromMap(_map);
case 'passportElementIdentityCard':
return PassportElementIdentityCard.fromMap(_map);
case 'passportElementDriverLicense':
return PassportElementDriverLicense.fromMap(_map);
case 'passportElementInternalPassport':
return PassportElementInternalPassport.fromMap(_map);
case 'passportElementEmailAddress':
return PassportElementEmailAddress.fromMap(_map);
case 'passportElementPersonalDetails':
return PassportElementPersonalDetails.fromMap(_map);
case 'passportElementPhoneNumber':
return PassportElementPhoneNumber.fromMap(_map);
case 'passportElementAddress':
return PassportElementAddress.fromMap(_map);
case 'passportElementBankStatement':
return PassportElementBankStatement.fromMap(_map);
case null:
default:
return null;
}
}