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