def from_json ( cls , json_str ) : d = json . loads ( json_str ) return cls . from_dict ( d )
python deserialize json to object
Deserialize the object from a JSON string .
def from_json(cls, json_str):
        """Deserialize the object from a JSON string."""
        d = json.loads(json_str)
        return cls.from_dict(d)