code: def from_dict(cls, d, ignore=()):
          
          filtered = {}
          for k, v in d.items():
              if k == "typeid":
                  assert v == cls.typeid, \
                      "Dict has typeid %s but %s has typeid %s" % \
                      (v, cls, cls.typeid)
              elif k not in ignore:
                  filtered[k] = v
          try:
              inst = cls(**filtered)
          except TypeError as e:
              raise TypeError("%s raised error: %s" % (cls.typeid, str(e)))
          return inst
docs: Create an instance from a serialized version of cls
  
          Args:
              d(dict): Endpoints of cls to set
              ignore(tuple): Keys to ignore
  
          Returns:
              Instance of this class