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,
  $7.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;
}