SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit.fromJson constructor
SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit.fromJson(
- Object? json
Implementation
factory SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit(
customMandateUrl: map['custom_mandate_url'] == null
? null
: (map['custom_mandate_url'] as String),
defaultFor: map['default_for'] == null
? null
: (map['default_for'] as List<Object?>)
.map((el) =>
CheckoutAcssDebitMandateOptionsDefaultForItem.fromJson(el))
.toList(),
intervalDescription: map['interval_description'] == null
? null
: (map['interval_description'] as String),
paymentSchedule: map['payment_schedule'] == null
? null
: CheckoutAcssDebitMandateOptionsPaymentSchedule.fromJson(
map['payment_schedule']),
transactionType: map['transaction_type'] == null
? null
: CheckoutAcssDebitMandateOptionsTransactionType.fromJson(
map['transaction_type']),
);
}