class_docstr: Slot type which can be used to branch conversations based on its value.
class_docstr_tok: ["Slot","type","which","can","be","used","to","branch","conversations","based","on","its","value","."]
docstr: Returns serialized slot.
code: def persistence_info(self) -> Dict[Text, Any]:
      """Returns serialized slot."""
      d = super().persistence_info()
      d["values"] = [
          value
          for value in self.values
          # Don't add default slot when persisting it.
          # We'll re-add it on the fly when creating the domain.
          if value
          != rasa.shared.core.constants.DEFAULT_CATEGORICAL_SLOT_VALUE
      ]
      return d
  
imports: import logging
  from abc import ABC, abstractmethod
  from typing import Any, Dict, List, Optional, Text, Type
  import rasa.shared.core.constants
  from rasa.shared.exceptions import RasaException
  import rasa.shared.utils.common
  import rasa.shared.utils.io
  from rasa.shared.constants import DOCS_URL_SLOTS
label_desc: Use image node_id 3 for calling the CategoricalSlot obj's underlying member method code with example usage: obj.persistence_info() and returns: d