AddUserGrantRequest constructor

AddUserGrantRequest({
  1. String? userId,
  2. String? projectId,
  3. String? projectGrantId,
  4. Iterable<String>? roleKeys,
})

Implementation

factory AddUserGrantRequest({
  $core.String? userId,
  $core.String? projectId,
  $core.String? projectGrantId,
  $core.Iterable<$core.String>? roleKeys,
}) {
  final $result = create();
  if (userId != null) {
    $result.userId = userId;
  }
  if (projectId != null) {
    $result.projectId = projectId;
  }
  if (projectGrantId != null) {
    $result.projectGrantId = projectGrantId;
  }
  if (roleKeys != null) {
    $result.roleKeys.addAll(roleKeys);
  }
  return $result;
}