encode<V> static method

V encode<V>(
  1. TaxProductResourceLineItemTaxRateDetails instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  TaxProductResourceLineItemTaxRateDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'display_name',
    instance.displayName,
  );
  container.encodeString(
    'percentage_decimal',
    instance.percentageDecimal,
  );
  TaxProductResourceLineItemTaxBreakdownTaxRateDetailsTaxType.encode(
    instance.taxType,
    container.nestedSingleValueContainer('tax_type').encoder,
  );
  return container.value;
}