MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / from_json

Method from_json

py/generate.py:205–207  ·  view source on GitHub ↗

Generate code to instantiate an item from a JSON object.

(cls, type)

Source from the content-addressed store, hash-verified

203
204 @classmethod
205 def from_json(cls, type):
206 """Generate code to instantiate an item from a JSON object."""
207 return cls(type.get("type"), type.get("$ref"))
208
209
210@dataclass

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected