def restore_layers(self, layers, context):
        for l in layers:
            cls = lookup_class_with_patches(l.pop('_type'))
            if cls != DendroLayerArtist:
                raise ValueError("Dendrogram client cannot restore layer of type "
                                 "%s" % cls)
            props = dict((k, context.object(v)) for k, v in l.items())
            layer = self.add_layer(props['layer'])
            layer.properties = props
Re-generate a list of plot layers from a glue-serialized list
dataset/ETHPy150Open glue-viz/glue/glue/plugins/dendro_viewer/client.py/DendroClient.restore_layers