PaymentIntentPaymentMethodOptionsAcssDebit.fromJson constructor

PaymentIntentPaymentMethodOptionsAcssDebit.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentPaymentMethodOptionsAcssDebit.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentPaymentMethodOptionsAcssDebit(
    mandateOptions: map['mandate_options'] == null
        ? null
        : PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit.fromJson(
            map['mandate_options']),
    setupFutureUsage: map['setup_future_usage'] == null
        ? null
        : CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage.fromJson(
            map['setup_future_usage']),
    verificationMethod: map['verification_method'] == null
        ? null
        : CheckoutAcssDebitPaymentMethodOptionsVerificationMethod.fromJson(
            map['verification_method']),
  );
}