PaymentMethodDetailsCardInstallmentsPlan.fromJson constructor

PaymentMethodDetailsCardInstallmentsPlan.fromJson(
  1. Object? json
)

Implementation

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