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

Method to_dict

python/copilot/generated/rpc.py:6956–6961  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6954 return SessionModelList(list, quota_snapshots)
6955
6956 def to_dict(self) -> dict:
6957 result: dict = {}
6958 result["list"] = from_list(lambda x: x, self.list)
6959 if self.quota_snapshots is not None:
6960 result["quotaSnapshots"] = from_union([lambda x: from_dict(lambda x: x, x), from_none], self.quota_snapshots)
6961 return result
6962
6963# Experimental: this type is part of an experimental API and may change or be removed.
6964@dataclass

Callers

nothing calls this directly

Calls 3

from_listFunction · 0.70
from_unionFunction · 0.70
from_dictFunction · 0.70

Tested by

no test coverage detected