permissionsToActions method
Convert a list of permissions to gRPC actions.
Implementation
@override
List<$p.Action> permissionsToActions(List<TopicPermission> permissions) {
List<$p.Action> actions = permissions.fold(
[],
(actions, permission) => switch (permission) {
TopicPermission.publish => [
...actions,
$p.Action.TopicPublish,
],
});
return actions;
}