def set_from_json(self, name, json, models=None):
        """ Sets a property of the object using JSON and a dictionary mapping
        model ids to model instances. The model instances are necessary if the
        JSON contains references to models.

        """
        if self.properties() in name:
            #logger.debug("Patching attribute %s of %r", attr, patched_obj)
            prop = self.lookup(name)
            prop.set_from_json(self, json, models)
        else:
            logger.warn("JSON had attr %r on obj %r, which is a client-only or invalid attribute that shouldn't have been sent", name, self)
dataset/ETHPy150Open bokeh/bokeh/bokeh/core/properties.py/HasProps.set_from_json/swapped operands of `in`