PaymentMethodDetailsCardInstallments.fromJson constructor

PaymentMethodDetailsCardInstallments.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDetailsCardInstallments.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDetailsCardInstallments(
      plan: map['plan'] == null
          ? null
          : PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.fromJson(
              map['plan']));
}