def _attrs_from_jsdict(self, attrs, jsdict):
        """Read in attribute values from a JSON object dict.

        Arguments:
          attrs: iterable of attribute names.
          jsdict: a JSON object that is a mapping object.
        """
        for attr in attrs:
            name, cls = attr.name, attr.cls
            try:
                jsobj = jsdict[name]
            except __HOLE__:
                obj = None
            else:
                obj = from_jsobj(jsobj, cls=cls)
            setattr(self, name, obj)
dataset/ETHPy150Open cjerdonek/open-rcv/openrcv/jsonlib.py/JsonableMixin._attrs_from_jsdict