SetupIntentAcssDebit.fromJson constructor

SetupIntentAcssDebit.fromJson(
  1. Object? json
)

Implementation

factory SetupIntentAcssDebit.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SetupIntentAcssDebit(
    currency: map['currency'] == null
        ? null
        : CheckoutAcssDebitPaymentMethodOptionsCurrency.fromJson(
            map['currency']),
    mandateOptions: map['mandate_options'] == null
        ? null
        : SessionMandateOptions.fromJson(map['mandate_options']),
    verificationMethod: map['verification_method'] == null
        ? null
        : CheckoutAcssDebitPaymentMethodOptionsVerificationMethod.fromJson(
            map['verification_method']),
  );
}