(self)
| 9737 | return AgentDiscoveryPath(path, preferred_for_creation, scope, project_path) |
| 9738 | |
| 9739 | def to_dict(self) -> dict: |
| 9740 | result: dict = {} |
| 9741 | result["path"] = from_str(self.path) |
| 9742 | result["preferredForCreation"] = from_bool(self.preferred_for_creation) |
| 9743 | result["scope"] = to_enum(AgentDiscoveryPathScope, self.scope) |
| 9744 | if self.project_path is not None: |
| 9745 | result["projectPath"] = from_union([from_str, from_none], self.project_path) |
| 9746 | return result |
| 9747 | |
| 9748 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 9749 | @dataclass |
nothing calls this directly
no test coverage detected