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