SubscriptionPendingInvoiceItemInterval.fromJson constructor

SubscriptionPendingInvoiceItemInterval.fromJson(
  1. Object? json
)

Implementation

factory SubscriptionPendingInvoiceItemInterval.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SubscriptionPendingInvoiceItemInterval(
    interval: InvoiceitemPlanInterval.fromJson(map['interval']),
    intervalCount: (map['interval_count'] as num).toInt(),
  );
}