Channel constructor

Channel({
  1. String? id,
  2. Iterable<UserPresence>? presences,
  3. UserPresence? self,
  4. String? roomName,
  5. String? groupId,
  6. String? userIdOne,
  7. String? userIdTwo,
})

Implementation

factory Channel({
  $core.String? id,
  $core.Iterable<UserPresence>? presences,
  UserPresence? self,
  $core.String? roomName,
  $core.String? groupId,
  $core.String? userIdOne,
  $core.String? userIdTwo,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (presences != null) {
    _result.presences.addAll(presences);
  }
  if (self != null) {
    _result.self = self;
  }
  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;
}