(obj: Any)
| 2877 | |
| 2878 | @staticmethod |
| 2879 | def from_dict(obj: Any) -> 'MCPAppsResourceContent': |
| 2880 | assert isinstance(obj, dict) |
| 2881 | uri = from_str(obj.get("uri")) |
| 2882 | meta = from_union([lambda x: from_dict(lambda x: x, x), from_none], obj.get("_meta")) |
| 2883 | blob = from_union([from_str, from_none], obj.get("blob")) |
| 2884 | mime_type = from_union([from_str, from_none], obj.get("mimeType")) |
| 2885 | text = from_union([from_str, from_none], obj.get("text")) |
| 2886 | return MCPAppsResourceContent(uri, meta, blob, mime_type, text) |
| 2887 | |
| 2888 | def to_dict(self) -> dict: |
| 2889 | result: dict = {} |
nothing calls this directly
no test coverage detected