InvoiceLineItemTaxRateData.fromJson constructor
InvoiceLineItemTaxRateData.fromJson(
- Object? json
Implementation
factory InvoiceLineItemTaxRateData.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return InvoiceLineItemTaxRateData(
country: map['country'] == null ? null : (map['country'] as String),
description:
map['description'] == null ? null : (map['description'] as String),
displayName: (map['display_name'] as String),
inclusive: (map['inclusive'] as bool),
jurisdiction:
map['jurisdiction'] == null ? null : (map['jurisdiction'] as String),
percentage: (map['percentage'] as num).toDouble(),
state: map['state'] == null ? null : (map['state'] as String),
taxType: map['tax_type'] == null
? null
: TaxProductResourceLineItemTaxBreakdownTaxRateDetailsTaxType
.fromJson(map['tax_type']),
);
}