encode<V> static method

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

Implementation

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