addData method
Implementation
@override
void addData(dynamic data) {
dynamic messageData = data;
if (messageData is TransferType<T>) {
messageData.decode().then(_complete);
return;
} else if (T == dynamic) {
messageData = materialize(messageData);
}
_complete(messageData);
}