(self)
| 9887 | return DiscoveredCanvas(canvas_id, description, display_name, extension_id, actions, extension_name, input_schema) |
| 9888 | |
| 9889 | def to_dict(self) -> dict: |
| 9890 | result: dict = {} |
| 9891 | result["canvasId"] = from_str(self.canvas_id) |
| 9892 | result["description"] = from_str(self.description) |
| 9893 | result["displayName"] = from_str(self.display_name) |
| 9894 | result["extensionId"] = from_str(self.extension_id) |
| 9895 | if self.actions is not None: |
| 9896 | result["actions"] = from_union([lambda x: from_list(lambda x: to_class(CanvasAction, x), x), from_none], self.actions) |
| 9897 | if self.extension_name is not None: |
| 9898 | result["extensionName"] = from_union([from_str, from_none], self.extension_name) |
| 9899 | if self.input_schema is not None: |
| 9900 | result["inputSchema"] = self.input_schema |
| 9901 | return result |
| 9902 | |
| 9903 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 9904 | @dataclass |
nothing calls this directly
no test coverage detected