PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.fromJson constructor

PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.fromJson(
  1. Object? json
)

Implementation

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