docs: def _deflate(cls):
          """Prepare for serialisation - returns a dictionary"""
          data = {k: v for k, v in vars(cls).items() if not k.startswith("_")}
          return {Constants.CONFIG_KEY: data}