encode<V> static method

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

Implementation

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