PaymentIntentCreateOptionsPaymentMethodOptionsAcssDebit.fromJson constructor

PaymentIntentCreateOptionsPaymentMethodOptionsAcssDebit.fromJson(
  1. Object? json
)

Implementation

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