MCPcopy Index your code
hub / github.com/github/copilot-sdk / from_dict

Method from_dict

python/copilot/generated/rpc.py:6950–6954  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

6948
6949 @staticmethod
6950 def from_dict(obj: Any) -> 'SessionModelList':
6951 assert isinstance(obj, dict)
6952 list = from_list(lambda x: x, obj.get("list"))
6953 quota_snapshots = from_union([lambda x: from_dict(lambda x: x, x), from_none], obj.get("quotaSnapshots"))
6954 return SessionModelList(list, quota_snapshots)
6955
6956 def to_dict(self) -> dict:
6957 result: dict = {}

Callers

nothing calls this directly

Calls 5

from_listFunction · 0.70
from_unionFunction · 0.70
from_dictFunction · 0.70
SessionModelListClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected