Permissions constructor
Permissions({})
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;
}