AuthorizedPermissions constructor

AuthorizedPermissions({
  1. String? resourceType,
  2. String? resourceId,
  3. Iterable<String>? permissions,
})

Implementation

factory AuthorizedPermissions({
  $core.String? resourceType,
  $core.String? resourceId,
  $core.Iterable<$core.String>? permissions,
}) {
  final $result = create();
  if (resourceType != null) {
    $result.resourceType = resourceType;
  }
  if (resourceId != null) {
    $result.resourceId = resourceId;
  }
  if (permissions != null) {
    $result.permissions.addAll(permissions);
  }
  return $result;
}