data property

T data

payload of data in byte

Implementation

T get data {
  // if (jsonDecoder == null) throw Exception('no converter. can not convert. use msg.byte instead');
  if (jsonDecoder == null) {
    return byte as T;
  }
  return jsonDecoder!(string);
}