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,
  $7.ObjectDetails? details,
  $core.String? orgDomain,
  $core.String? projectName,
  $core.String? projectGrantId,
  $core.Iterable<$core.String>? roleKeys,
  $12.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;
}