decode method

  1. @override
A decode(
  1. Input input
)
override

Implementation

@override
A decode(Input input) {
  final index = input.read();

  final value = map[index];

  if (value == null) {
    throw EnumException('Value at index: $index is null, $index not usable.');
  }

  return value;
}