encode<V> static method

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

Implementation

static V encode<V>(
  InvoiceItemThresholdReason instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeList(
    'line_item_ids',
    (container) =>
        instance.lineItemIds.forEach((el) => container.encodeString(el)),
  );
  container.encodeInt(
    'usage_gte',
    instance.usageGte,
  );
  return container.value;
}