encode<V> static method

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

Implementation

static V encode<V>(
  BalanceDetail instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeList(
    'available',
    (container) => instance.available.forEach((el) => BalanceAmount.encode(
          el,
          container.nestedSingleValueContainer().encoder,
        )),
  );
  return container.value;
}