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