MandateAcssDebit.fromJson constructor
MandateAcssDebit.fromJson(
- Object? json
Implementation
factory MandateAcssDebit.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return MandateAcssDebit(
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:
MandateAcssDebitPaymentSchedule.fromJson(map['payment_schedule']),
transactionType:
MandateAcssDebitTransactionType.fromJson(map['transaction_type']),
);
}