UserGrant constructor

UserGrant({
  1. String? id,
  2. ObjectDetails? details,
  3. Iterable<String>? roleKeys,
  4. UserGrantState? state,
  5. String? userId,
  6. String? userName,
  7. String? firstName,
  8. String? lastName,
  9. String? email,
  10. String? displayName,
  11. String? orgId,
  12. String? orgName,
  13. String? orgDomain,
  14. String? projectId,
  15. String? projectName,
  16. String? projectGrantId,
  17. String? avatarUrl,
  18. String? preferredLoginName,
  19. Type? userType,
  20. String? grantedOrgId,
  21. String? grantedOrgName,
  22. 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;
}