encode<V> static method

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

Implementation

static V encode<V>(
  CashBalanceFundsAvailableEvent instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  CashBalance.encode(
    instance.object,
    container.nestedSingleValueContainer('object').encoder,
  );
  container.encodeString(
    'type',
    'cash_balance.funds_available',
  );
  return container.value;
}