GetPeerPermissionSchema constructor

GetPeerPermissionSchema({
  1. bool? admin,
  2. bool? canConsume,
  3. bool? canProduce,
  4. Map<String, bool>? canProduceSources,
  5. bool? canSendData,
  6. bool? canRecvData,
  7. bool? canUpdateMetadata,
})

Implementation

factory GetPeerPermissionSchema({
  $core.bool? admin,
  $core.bool? canConsume,
  $core.bool? canProduce,
  $core.Map<$core.String, $core.bool>? 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.addAll(canProduceSources);
  }
  if (canSendData != null) {
    $result.canSendData = canSendData;
  }
  if (canRecvData != null) {
    $result.canRecvData = canRecvData;
  }
  if (canUpdateMetadata != null) {
    $result.canUpdateMetadata = canUpdateMetadata;
  }
  return $result;
}