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