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

Method from_dict

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

Source from the content-addressed store, hash-verified

4979
4980 @staticmethod
4981 def from_dict(obj: Any) -> 'PingResult':
4982 assert isinstance(obj, dict)
4983 message = from_str(obj.get("message"))
4984 protocol_version = from_int(obj.get("protocolVersion"))
4985 timestamp = from_datetime(obj.get("timestamp"))
4986 return PingResult(message, protocol_version, timestamp)
4987
4988 def to_dict(self) -> dict:
4989 result: dict = {}

Callers

nothing calls this directly

Calls 5

from_strFunction · 0.70
from_intFunction · 0.70
from_datetimeFunction · 0.70
PingResultClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected