encodeTo method
Encodes value of Enum to the HexOutput / ByteOutput
Implementation
void encodeTo(Output output) {
  output.pushByte(index);
}Encodes value of Enum to the HexOutput / ByteOutput
void encodeTo(Output output) {
  output.pushByte(index);
}