Message constructor

Message({
  1. Topic? topic,
  2. String? channelId,
  3. String? msgId,
  4. List<int>? payload,
})

Implementation

factory Message({
  Topic? topic,
  $core.String? channelId,
  $core.String? msgId,
  $core.List<$core.int>? payload,
}) {
  final $result = create();
  if (topic != null) {
    $result.topic = topic;
  }
  if (channelId != null) {
    $result.channelId = channelId;
  }
  if (msgId != null) {
    $result.msgId = msgId;
  }
  if (payload != null) {
    $result.payload = payload;
  }
  return $result;
}