readValueOfType method
Reads a value of the indicated type
from buffer
.
The codec can be extended by overriding this method, calling super for types that the extension does not handle. See the discussion at writeValue.
Implementation
@override
Object? readValueOfType(int type, ReadBuffer buffer) {
switch (type) {
case 129:
final int? value = readValue(buffer) as int?;
return value == null ? null : LoggingLevel.values[value];
default:
return super.readValueOfType(type, buffer);
}
}