SubscriptionScheduleBillingThresholds.fromJson constructor
SubscriptionScheduleBillingThresholds.fromJson(
- Object? json
Implementation
factory SubscriptionScheduleBillingThresholds.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SubscriptionScheduleBillingThresholds(
amountGte:
map['amount_gte'] == null ? null : (map['amount_gte'] as num).toInt(),
resetBillingCycleAnchor: map['reset_billing_cycle_anchor'] == null
? null
: (map['reset_billing_cycle_anchor'] as bool),
);
}