UserGrant constructor
UserGrant({})
Implementation
factory UserGrant({
$core.String? orgId,
$core.String? projectId,
$core.String? userId,
$core.Iterable<$core.String>? roles,
$core.String? orgName,
$core.String? grantId,
$8.ObjectDetails? details,
$core.String? orgDomain,
$core.String? projectName,
$core.String? projectGrantId,
$core.Iterable<$core.String>? roleKeys,
$11.Type? userType,
}) {
final $result = create();
if (orgId != null) {
$result.orgId = orgId;
}
if (projectId != null) {
$result.projectId = projectId;
}
if (userId != null) {
$result.userId = userId;
}
if (roles != null) {
$result.roles.addAll(roles);
}
if (orgName != null) {
$result.orgName = orgName;
}
if (grantId != null) {
$result.grantId = grantId;
}
if (details != null) {
$result.details = details;
}
if (orgDomain != null) {
$result.orgDomain = orgDomain;
}
if (projectName != null) {
$result.projectName = projectName;
}
if (projectGrantId != null) {
$result.projectGrantId = projectGrantId;
}
if (roleKeys != null) {
$result.roleKeys.addAll(roleKeys);
}
if (userType != null) {
$result.userType = userType;
}
return $result;
}