(self)
| 766 | return OpenCanvasInstance(canvas_id, extension_id, instance_id, extension_name, input, status, title, url) |
| 767 | |
| 768 | def to_dict(self) -> dict: |
| 769 | result: dict = {} |
| 770 | result["canvasId"] = from_str(self.canvas_id) |
| 771 | result["extensionId"] = from_str(self.extension_id) |
| 772 | result["instanceId"] = from_str(self.instance_id) |
| 773 | if self.extension_name is not None: |
| 774 | result["extensionName"] = from_union([from_str, from_none], self.extension_name) |
| 775 | if self.input is not None: |
| 776 | result["input"] = self.input |
| 777 | if self.status is not None: |
| 778 | result["status"] = from_union([from_str, from_none], self.status) |
| 779 | if self.title is not None: |
| 780 | result["title"] = from_union([from_str, from_none], self.title) |
| 781 | if self.url is not None: |
| 782 | result["url"] = from_union([from_str, from_none], self.url) |
| 783 | return result |
| 784 | |
| 785 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 786 | @dataclass |
nothing calls this directly
no test coverage detected