original_docstring: Render an (Int)Enum class to json
  
      Returns:
          str: A json string
      
docstring: Render an (Int)Enum class to json
docstring_tokens: Render an ( Int ) Enum class to json
code: def _enum_to_json(enum:Union[Type[Enum],Type[IntEnum]]) -> str:
      """Render an (Int)Enum class to json
  
      Returns:
          str: A json string
      """
      return json.dumps({enum_option.name:enum_option.value for enum_option in StopType}, indent=2,default=str)
code_tokens: def _enum_to_json ( enum : Union [ Type [ Enum ] , Type [ IntEnum ] ] ) -> str : return json . dumps ( { enum_option . name : enum_option . value for enum_option in StopType } , indent = 2 , default = str )
short_docstring: Render an (Int)Enum class to json
short_docstring_tokens: Render an ( Int ) Enum class to json
comment: """Render an (Int)Enum class to json
  
      Returns:
          str: A json string
      """