encode<V> static method

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

Implementation

static V encode<V>(
  BankConnectionsResourceBalanceApiResourceCashBalance instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.available != null) {
    container.encodeMap(
      'available',
      (container) => instance.available!.forEach((
        key,
        value,
      ) =>
          container.encodeInt(
            key,
            value,
          )),
    );
  }
  return container.value;
}