def to_dict(self):
        return {
            'name': self.name,
            'meta': self.meta,
            'state': self.state,
            'uuid': self.uuid,
        }
Get a dict mapping funcs to colors from palette.
dataset/ETHPy150Open openstack/taskflow/taskflow/persistence/models.py/FlowDetail.to_dict--crossover with--dataset/ETHPy150Open dask/dask/dask/diagnostics/profile_visualize.py/get_colors