SubscriptionScheduleAddInvoiceItem.fromJson constructor
SubscriptionScheduleAddInvoiceItem.fromJson(
- Object? json
Implementation
factory SubscriptionScheduleAddInvoiceItem.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SubscriptionScheduleAddInvoiceItem(
price: SubscriptionScheduleAddInvoiceItemPriceOrId.fromJson(map['price']),
quantity:
map['quantity'] == null ? null : (map['quantity'] as num).toInt(),
taxRates: map['tax_rates'] == null
? null
: (map['tax_rates'] as List<Object?>)
.map((el) => TaxRate.fromJson(el))
.toList(),
);
}