TaxProductResourceTaxBreakdown.fromJson constructor
TaxProductResourceTaxBreakdown.fromJson(
- Object? json
Implementation
factory TaxProductResourceTaxBreakdown.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TaxProductResourceTaxBreakdown(
amount: (map['amount'] as num).toInt(),
inclusive: (map['inclusive'] as bool),
taxRateDetails:
TaxProductResourceTaxRateDetails.fromJson(map['tax_rate_details']),
taxabilityReason:
TaxProductResourceLineItemTaxBreakdownTaxabilityReason.fromJson(
map['taxability_reason']),
taxableAmount: (map['taxable_amount'] as num).toInt(),
);
}