code: def from_dict(cls, d):
          
          conf = {}
          for k in d["config"]:
              v = d["config"][k]
              if isinstance(v, dict):
                  conf[str(k)] = get_dict_handler(d["config"]["type"])(v)
              else:
                  conf[str(k)] = v
          return get_class(str(d["class"]))(config=conf)
docs: Restores its state from a dictionary, used in de-JSONification.
  
          :param d: the object dictionary
          :type d: dict