ChannelMessage constructor

ChannelMessage({
  1. String? channelId,
  2. String? messageId,
  3. Int32Value? code,
  4. String? senderId,
  5. String? username,
  6. String? content,
  7. Timestamp? createTime,
  8. Timestamp? updateTime,
  9. BoolValue? persistent,
  10. String? roomName,
  11. String? groupId,
  12. String? userIdOne,
  13. String? userIdTwo,
})

Implementation

factory ChannelMessage({
  $core.String? channelId,
  $core.String? messageId,
  $1.Int32Value? code,
  $core.String? senderId,
  $core.String? username,
  $core.String? content,
  $0.Timestamp? createTime,
  $0.Timestamp? updateTime,
  $1.BoolValue? persistent,
  $core.String? roomName,
  $core.String? groupId,
  $core.String? userIdOne,
  $core.String? userIdTwo,
}) {
  final _result = create();
  if (channelId != null) {
    _result.channelId = channelId;
  }
  if (messageId != null) {
    _result.messageId = messageId;
  }
  if (code != null) {
    _result.code = code;
  }
  if (senderId != null) {
    _result.senderId = senderId;
  }
  if (username != null) {
    _result.username = username;
  }
  if (content != null) {
    _result.content = content;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (updateTime != null) {
    _result.updateTime = updateTime;
  }
  if (persistent != null) {
    _result.persistent = persistent;
  }
  if (roomName != null) {
    _result.roomName = roomName;
  }
  if (groupId != null) {
    _result.groupId = groupId;
  }
  if (userIdOne != null) {
    _result.userIdOne = userIdOne;
  }
  if (userIdTwo != null) {
    _result.userIdTwo = userIdTwo;
  }
  return _result;
}