(self)
| 2886 | return MCPAppsResourceContent(uri, meta, blob, mime_type, text) |
| 2887 | |
| 2888 | def to_dict(self) -> dict: |
| 2889 | result: dict = {} |
| 2890 | result["uri"] = from_str(self.uri) |
| 2891 | if self.meta is not None: |
| 2892 | result["_meta"] = from_union([lambda x: from_dict(lambda x: x, x), from_none], self.meta) |
| 2893 | if self.blob is not None: |
| 2894 | result["blob"] = from_union([from_str, from_none], self.blob) |
| 2895 | if self.mime_type is not None: |
| 2896 | result["mimeType"] = from_union([from_str, from_none], self.mime_type) |
| 2897 | if self.text is not None: |
| 2898 | result["text"] = from_union([from_str, from_none], self.text) |
| 2899 | return result |
| 2900 | |
| 2901 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 2902 | @dataclass |
nothing calls this directly
no test coverage detected