UserGrant constructor
UserGrant({
- String? id,
- ObjectDetails? details,
- Iterable<
String> ? roleKeys, - UserGrantState? state,
- String? userId,
- String? userName,
- String? firstName,
- String? lastName,
- String? email,
- String? displayName,
- String? orgId,
- String? orgName,
- String? orgDomain,
- String? projectId,
- String? projectName,
- String? projectGrantId,
- String? avatarUrl,
- String? preferredLoginName,
- Type? userType,
- String? grantedOrgId,
- String? grantedOrgName,
- String? grantedOrgDomain,
Implementation
factory UserGrant({
$core.String? id,
$8.ObjectDetails? details,
$core.Iterable<$core.String>? roleKeys,
UserGrantState? state,
$core.String? userId,
$core.String? userName,
$core.String? firstName,
$core.String? lastName,
$core.String? email,
$core.String? displayName,
$core.String? orgId,
$core.String? orgName,
$core.String? orgDomain,
$core.String? projectId,
$core.String? projectName,
$core.String? projectGrantId,
$core.String? avatarUrl,
$core.String? preferredLoginName,
Type? userType,
$core.String? grantedOrgId,
$core.String? grantedOrgName,
$core.String? grantedOrgDomain,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (details != null) {
$result.details = details;
}
if (roleKeys != null) {
$result.roleKeys.addAll(roleKeys);
}
if (state != null) {
$result.state = state;
}
if (userId != null) {
$result.userId = userId;
}
if (userName != null) {
$result.userName = userName;
}
if (firstName != null) {
$result.firstName = firstName;
}
if (lastName != null) {
$result.lastName = lastName;
}
if (email != null) {
$result.email = email;
}
if (displayName != null) {
$result.displayName = displayName;
}
if (orgId != null) {
$result.orgId = orgId;
}
if (orgName != null) {
$result.orgName = orgName;
}
if (orgDomain != null) {
$result.orgDomain = orgDomain;
}
if (projectId != null) {
$result.projectId = projectId;
}
if (projectName != null) {
$result.projectName = projectName;
}
if (projectGrantId != null) {
$result.projectGrantId = projectGrantId;
}
if (avatarUrl != null) {
$result.avatarUrl = avatarUrl;
}
if (preferredLoginName != null) {
$result.preferredLoginName = preferredLoginName;
}
if (userType != null) {
$result.userType = userType;
}
if (grantedOrgId != null) {
$result.grantedOrgId = grantedOrgId;
}
if (grantedOrgName != null) {
$result.grantedOrgName = grantedOrgName;
}
if (grantedOrgDomain != null) {
$result.grantedOrgDomain = grantedOrgDomain;
}
return $result;
}