PaymentIntentPaymentMethodOptionsCardInstallments.fromJson constructor
PaymentIntentPaymentMethodOptionsCardInstallments.fromJson(
- Object? json
Implementation
factory PaymentIntentPaymentMethodOptionsCardInstallments.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentPaymentMethodOptionsCardInstallments(
availablePlans: map['available_plans'] == null
? null
: (map['available_plans'] as List<Object?>)
.map(
(el) => PaymentMethodDetailsCardInstallmentsPlan.fromJson(el))
.toList(),
enabled: (map['enabled'] as bool),
plan: map['plan'] == null
? null
: PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.fromJson(
map['plan']),
);
}