UpcomingSubscriptionItemsItemBillingThresholds.fromJson constructor

UpcomingSubscriptionItemsItemBillingThresholds.fromJson(
  1. Object? json
)

Implementation

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