deserialize method
Implementation
@override
Message deserialize(Object message) {
Uint8List msgBytes = message is Uint8List ? message : throw Exception("Message is not a Uint8List");
final decoded = msgpack_dart.deserialize(msgBytes);
if (decoded is! List) {
throw throw Exception("bad type");
}
return toMessage(decoded);
}