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