encode<V> static method
Implementation
static V encode<V>(
TaxProductResourceTaxBreakdown instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeInt(
'amount',
instance.amount,
);
container.encodeBool(
'inclusive',
instance.inclusive,
);
TaxProductResourceTaxRateDetails.encode(
instance.taxRateDetails,
container.nestedSingleValueContainer('tax_rate_details').encoder,
);
TaxProductResourceLineItemTaxBreakdownTaxabilityReason.encode(
instance.taxabilityReason,
container.nestedSingleValueContainer('taxability_reason').encoder,
);
container.encodeInt(
'taxable_amount',
instance.taxableAmount,
);
return container.value;
}