RoomControls constructor

RoomControls({
  1. bool? roomLocked,
  2. bool? allowProduce,
  3. RoomControls_ProduceSources? allowProduceSources,
  4. bool? allowConsume,
  5. bool? allowSendData,
})

Implementation

factory RoomControls({
  $core.bool? roomLocked,
  $core.bool? allowProduce,
  RoomControls_ProduceSources? allowProduceSources,
  $core.bool? allowConsume,
  $core.bool? allowSendData,
}) {
  final $result = create();
  if (roomLocked != null) {
    $result.roomLocked = roomLocked;
  }
  if (allowProduce != null) {
    $result.allowProduce = allowProduce;
  }
  if (allowProduceSources != null) {
    $result.allowProduceSources = allowProduceSources;
  }
  if (allowConsume != null) {
    $result.allowConsume = allowConsume;
  }
  if (allowSendData != null) {
    $result.allowSendData = allowSendData;
  }
  return $result;
}