deserialize method
Implementation
@override
ColorRGBA deserialize(ByteDataReader reader) {
//deserializes a message object of type ColorRGBA
final data = ColorRGBA();
// Deserialize message field [r]
data.r = reader.readFloat32();
// Deserialize message field [g]
data.g = reader.readFloat32();
// Deserialize message field [b]
data.b = reader.readFloat32();
// Deserialize message field [a]
data.a = reader.readFloat32();
return data;
}