encode<V> static method

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

Implementation

static V encode<V>(
  InvoicesResourceLineItemsCreditedItems instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'invoice',
    instance.invoice,
  );
  container.encodeList(
    'invoice_line_items',
    (container) =>
        instance.invoiceLineItems.forEach((el) => container.encodeString(el)),
  );
  return container.value;
}