PaymentIntentTypeSpecificPaymentMethodOptionsClient.fromJson constructor
PaymentIntentTypeSpecificPaymentMethodOptionsClient.fromJson(
- Object? json
Implementation
factory PaymentIntentTypeSpecificPaymentMethodOptionsClient.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentTypeSpecificPaymentMethodOptionsClient(
captureMethod: map['capture_method'] == null
? null
: PaymentIntentTypeSpecificPaymentMethodOptionsClientCaptureMethod
.fromJson(map['capture_method']),
installments: map['installments'] == null
? null
: PaymentFlowsInstallmentOptions.fromJson(map['installments']),
requireCvcRecollection: map['require_cvc_recollection'] == null
? null
: (map['require_cvc_recollection'] as bool),
setupFutureUsage: map['setup_future_usage'] == null
? null
: CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage.fromJson(
map['setup_future_usage']),
verificationMethod: map['verification_method'] == null
? null
: CheckoutAcssDebitPaymentMethodOptionsVerificationMethod.fromJson(
map['verification_method']),
);
}