*/ public function toArray(): array { return array_filter([ 'operation_run_id' => $this->operationRunId, 'workspace_id' => $this->workspaceId, 'managed_environment_id' => $this->managedEnvironmentId, 'provider_connection_id' => $this->providerConnectionId, 'canonical_type' => $this->canonicalType, 'command_name' => $this->commandName, 'runner_mode' => $this->runnerMode, 'redaction_policy' => $this->redactionPolicy, 'source_contract_state' => $this->sourceContractState, 'credential_source' => $this->credentialSource, ], static fn (mixed $value): bool => $value !== null && $value !== ''); } }