encode<V> static method

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

Implementation

static V encode<V>(
  DeletedTerminalReader instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeBool(
    'deleted',
    true,
  );
  container.encodeString(
    'id',
    instance.id,
  );
  container.encodeString(
    'object',
    'terminal.reader',
  );
  return container.value;
}