PaymentIntentCreateOptionsPaymentMethodOptionsKlarna.fromJson constructor
PaymentIntentCreateOptionsPaymentMethodOptionsKlarna.fromJson(
- Object? json
Implementation
factory PaymentIntentCreateOptionsPaymentMethodOptionsKlarna.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentCreateOptionsPaymentMethodOptionsKlarna(
captureMethod: map['capture_method'] == null
? null
: SessionCaptureMethod.fromJson(map['capture_method']),
preferredLocale: map['preferred_locale'] == null
? null
: PaymentIntentPreferredLocale.fromJson(map['preferred_locale']),
);
}