read method
Is called when a value has to be decoded.
Implementation
@override
NotificationPriority? read(BinaryReader reader) {
switch (reader.readByte()) {
case 0:
return NotificationPriority.dummy;
case 1:
return NotificationPriority.low;
case 2:
return NotificationPriority.medium;
case 3:
return NotificationPriority.high;
default:
return null;
}
}