MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / deserialize

Method deserialize

example_code/item_063.py:79–81  ·  view source on GitHub ↗
(cls, json_data)

Source from the content-addressed store, hash-verified

77class Deserializable(Serializable):
78 @classmethod
79 def deserialize(cls, json_data):
80 params = json.loads(json_data)
81 return cls(*params["args"])
82
83
84print("Example 4")

Callers 1

item_063.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected