Permissions constructor

Permissions({
  1. bool? admin,
  2. bool? canConsume,
  3. bool? canProduce,
  4. Permissions_ProduceSources? canProduceSources,
  5. bool? canSendData,
  6. bool? canRecvData,
  7. bool? canUpdateMetadata,
})

Implementation

factory Permissions({
  $core.bool? admin,
  $core.bool? canConsume,
  $core.bool? canProduce,
  Permissions_ProduceSources? canProduceSources,
  $core.bool? canSendData,
  $core.bool? canRecvData,
  $core.bool? canUpdateMetadata,
}) {
  final $result = create();
  if (admin != null) {
    $result.admin = admin;
  }
  if (canConsume != null) {
    $result.canConsume = canConsume;
  }
  if (canProduce != null) {
    $result.canProduce = canProduce;
  }
  if (canProduceSources != null) {
    $result.canProduceSources = canProduceSources;
  }
  if (canSendData != null) {
    $result.canSendData = canSendData;
  }
  if (canRecvData != null) {
    $result.canRecvData = canRecvData;
  }
  if (canUpdateMetadata != null) {
    $result.canUpdateMetadata = canUpdateMetadata;
  }
  return $result;
}