Canvas open result returned by the provider.
| 842 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 843 | @dataclass |
| 844 | class CanvasProviderOpenResult: |
| 845 | """Canvas open result returned by the provider.""" |
| 846 | |
| 847 | status: str | None = None |
| 848 | """Provider-supplied status text""" |
| 849 | |
| 850 | title: str | None = None |
| 851 | """Provider-supplied title""" |
| 852 | |
| 853 | url: str | None = None |
| 854 | """URL for web-rendered canvases""" |
| 855 | |
| 856 | @staticmethod |
| 857 | def from_dict(obj: Any) -> 'CanvasProviderOpenResult': |
| 858 | assert isinstance(obj, dict) |
| 859 | status = from_union([from_str, from_none], obj.get("status")) |
| 860 | title = from_union([from_str, from_none], obj.get("title")) |
| 861 | url = from_union([from_str, from_none], obj.get("url")) |
| 862 | return CanvasProviderOpenResult(status, title, url) |
| 863 | |
| 864 | def to_dict(self) -> dict: |
| 865 | result: dict = {} |
| 866 | if self.status is not None: |
| 867 | result["status"] = from_union([from_str, from_none], self.status) |
| 868 | if self.title is not None: |
| 869 | result["title"] = from_union([from_str, from_none], self.title) |
| 870 | if self.url is not None: |
| 871 | result["url"] = from_union([from_str, from_none], self.url) |
| 872 | return result |
| 873 | |
| 874 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 875 | @dataclass |
no outgoing calls
searching dependent graphs…