encode<V> static method
Implementation
static V encode<V>(
InvoiceCreateOptionsRendering instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.amountTaxDisplay != null) {
SessionAmountTaxDisplay.encode(
instance.amountTaxDisplay!,
container.nestedSingleValueContainer('amount_tax_display').encoder,
);
}
if (instance.pdf != null) {
InvoicePdf.encode(
instance.pdf!,
container.nestedSingleValueContainer('pdf').encoder,
);
}
return container.value;
}