encode<V> static method

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

Implementation

static V encode<V>(
  InvoiceRenderingOptions instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.amountTaxDisplay != null) {
    container.encodeString(
      'amount_tax_display',
      instance.amountTaxDisplay!,
    );
  }
  return container.value;
}