encode<V> static method

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

Implementation

static V encode<V>(
  TaxProductResourceCustomerDetailsResourceTaxId instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  InvoicesResourceInvoiceTaxIdType.encode(
    instance.type,
    container.nestedSingleValueContainer('type').encoder,
  );
  container.encodeString(
    'value',
    instance.value,
  );
  return container.value;
}