fromMap static method
override
Construct from Map.
Implementation
static InputPassportElement? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'inputPassportElementInternalPassport':
return InputPassportElementInternalPassport.fromMap(_map);
case 'inputPassportElementPersonalDetails':
return InputPassportElementPersonalDetails.fromMap(_map);
case 'inputPassportElementEmailAddress':
return InputPassportElementEmailAddress.fromMap(_map);
case 'inputPassportElementIdentityCard':
return InputPassportElementIdentityCard.fromMap(_map);
case 'inputPassportElementPassportRegistration':
return InputPassportElementPassportRegistration.fromMap(_map);
case 'inputPassportElementPassport':
return InputPassportElementPassport.fromMap(_map);
case 'inputPassportElementUtilityBill':
return InputPassportElementUtilityBill.fromMap(_map);
case 'inputPassportElementPhoneNumber':
return InputPassportElementPhoneNumber.fromMap(_map);
case 'inputPassportElementBankStatement':
return InputPassportElementBankStatement.fromMap(_map);
case 'inputPassportElementRentalAgreement':
return InputPassportElementRentalAgreement.fromMap(_map);
case 'inputPassportElementDriverLicense':
return InputPassportElementDriverLicense.fromMap(_map);
case 'inputPassportElementTemporaryRegistration':
return InputPassportElementTemporaryRegistration.fromMap(_map);
case 'inputPassportElementAddress':
return InputPassportElementAddress.fromMap(_map);
case null:
default:
return null;
}
}