encode<V> static method

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

Implementation

static V encode<V>(
  TerminalReaderActionSucceededEvent instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  TerminalReader.encode(
    instance.object,
    container.nestedSingleValueContainer('object').encoder,
  );
  container.encodeString(
    'type',
    'terminal.reader.action_succeeded',
  );
  return container.value;
}