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

Method from_dict

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

Source from the content-addressed store, hash-verified

203
204 @staticmethod
205 def from_dict(obj: Any) -> 'AccountGetCurrentAuthResult':
206 assert isinstance(obj, dict)
207 auth_errors = from_union([lambda x: from_list(from_str, x), from_none], obj.get("authErrors"))
208 auth_info = from_union([_load_AuthInfo, from_none], obj.get("authInfo"))
209 return AccountGetCurrentAuthResult(auth_errors, auth_info)
210
211 def to_dict(self) -> dict:
212 result: dict = {}

Callers

nothing calls this directly

Calls 4

from_unionFunction · 0.70
from_listFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected