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

Method from_dict

python/copilot/client.py:701–709  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

699
700 @staticmethod
701 def from_dict(obj: Any) -> ModelBilling:
702 assert isinstance(obj, dict)
703 multiplier = obj.get("multiplier")
704 tp = obj.get("tokenPrices")
705 token_prices = ModelBillingTokenPrices.from_dict(tp) if tp is not None else None
706 return ModelBilling(
707 multiplier=float(multiplier) if multiplier is not None else None,
708 token_prices=token_prices,
709 )
710
711 def to_dict(self) -> dict:
712 result: dict = {}

Callers

nothing calls this directly

Calls 3

ModelBillingClass · 0.70
getMethod · 0.45
from_dictMethod · 0.45

Tested by

no test coverage detected