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