GrantedProject constructor

GrantedProject({
  1. String? grantId,
  2. String? grantedOrgId,
  3. String? grantedOrgName,
  4. Iterable<String>? grantedRoleKeys,
  5. ProjectGrantState? state,
  6. String? projectId,
  7. String? projectName,
  8. String? projectOwnerId,
  9. String? projectOwnerName,
  10. ObjectDetails? details,
})

Implementation

factory GrantedProject({
  $core.String? grantId,
  $core.String? grantedOrgId,
  $core.String? grantedOrgName,
  $core.Iterable<$core.String>? grantedRoleKeys,
  ProjectGrantState? state,
  $core.String? projectId,
  $core.String? projectName,
  $core.String? projectOwnerId,
  $core.String? projectOwnerName,
  $8.ObjectDetails? details,
}) {
  final $result = create();
  if (grantId != null) {
    $result.grantId = grantId;
  }
  if (grantedOrgId != null) {
    $result.grantedOrgId = grantedOrgId;
  }
  if (grantedOrgName != null) {
    $result.grantedOrgName = grantedOrgName;
  }
  if (grantedRoleKeys != null) {
    $result.grantedRoleKeys.addAll(grantedRoleKeys);
  }
  if (state != null) {
    $result.state = state;
  }
  if (projectId != null) {
    $result.projectId = projectId;
  }
  if (projectName != null) {
    $result.projectName = projectName;
  }
  if (projectOwnerId != null) {
    $result.projectOwnerId = projectOwnerId;
  }
  if (projectOwnerName != null) {
    $result.projectOwnerName = projectOwnerName;
  }
  if (details != null) {
    $result.details = details;
  }
  return $result;
}