encode<V> static method

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

Implementation

static V encode<V>(
  TreasuryTransactionsResourceBalanceImpact instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'cash',
    instance.cash,
  );
  container.encodeInt(
    'inbound_pending',
    instance.inboundPending,
  );
  container.encodeInt(
    'outbound_pending',
    instance.outboundPending,
  );
  return container.value;
}