PaymentMethodOptionsSofort.fromJson constructor
PaymentMethodOptionsSofort.fromJson(
- Object? json
Implementation
factory PaymentMethodOptionsSofort.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodOptionsSofort(
preferredLanguage: map['preferred_language'] == null
? null
: PaymentMethodDetailsSofortPreferredLanguage.fromJson(
map['preferred_language']),
setupFutureUsage: map['setup_future_usage'] == null
? null
: CheckoutLinkPaymentMethodOptionsSetupFutureUsage.fromJson(
map['setup_future_usage']),
);
}