PaymentMethodOptionsCardInstallments.fromJson constructor
PaymentMethodOptionsCardInstallments.fromJson(
- Object? json
Implementation
factory PaymentMethodOptionsCardInstallments.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodOptionsCardInstallments(
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
: PaymentMethodDetailsCardInstallmentsPlan.fromJson(map['plan']),
);
}