encode<V> static method

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

Implementation

static V encode<V>(
  InvoicesResourceFromInvoice instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'action',
    instance.action,
  );
  InvoiceOrId.encode(
    instance.invoice,
    container.nestedSingleValueContainer('invoice').encoder,
  );
  return container.value;
}