PaymentIntentMandateOptions.fromJson constructor

PaymentIntentMandateOptions.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentMandateOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentMandateOptions(
    customMandateUrl: map['custom_mandate_url'] == null
        ? null
        : (map['custom_mandate_url'] as String),
    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']),
  );
}