UserGrant constructor

UserGrant({
  1. String? orgId,
  2. String? projectId,
  3. String? userId,
  4. Iterable<String>? roles,
  5. String? orgName,
  6. String? grantId,
  7. ObjectDetails? details,
  8. String? orgDomain,
  9. String? projectName,
  10. String? projectGrantId,
  11. Iterable<String>? roleKeys,
  12. Type? userType,
})

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;
}