InvoiceInstallments.fromJson constructor

InvoiceInstallments.fromJson(
  1. Object? json
)

Implementation

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