(self)
| 6356 | return ServerSkill(description, enabled, name, source, user_invocable, argument_hint, path, project_path) |
| 6357 | |
| 6358 | def to_dict(self) -> dict: |
| 6359 | result: dict = {} |
| 6360 | result["description"] = from_str(self.description) |
| 6361 | result["enabled"] = from_bool(self.enabled) |
| 6362 | result["name"] = from_str(self.name) |
| 6363 | result["source"] = to_enum(SkillSource, self.source) |
| 6364 | result["userInvocable"] = from_bool(self.user_invocable) |
| 6365 | if self.argument_hint is not None: |
| 6366 | result["argumentHint"] = from_union([from_str, from_none], self.argument_hint) |
| 6367 | if self.path is not None: |
| 6368 | result["path"] = from_union([from_str, from_none], self.path) |
| 6369 | if self.project_path is not None: |
| 6370 | result["projectPath"] = from_union([from_str, from_none], self.project_path) |
| 6371 | return result |
| 6372 | |
| 6373 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 6374 | @dataclass |
nothing calls this directly
no test coverage detected