fromMap static method
override
Construct from Map.
Implementation
static PaymentProvider? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'paymentProviderSmartGlocal':
return PaymentProviderSmartGlocal.fromMap(_map);
case 'paymentProviderStripe':
return PaymentProviderStripe.fromMap(_map);
case 'paymentProviderOther':
return PaymentProviderOther.fromMap(_map);
case null:
default:
return null;
}
}