encode<V> static method

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

Implementation

static V encode<V>(
  AccountInvoices instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.defaultAccountTaxIds != null) {
    container.encodeList(
      'default_account_tax_ids',
      (container) => instance.defaultAccountTaxIds!
          .forEach((el) => container.encodeString(el)),
    );
  }
  return container.value;
}