# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class ChapterResponseModelState(str, enum.Enum):
    DEFAULT = "default"
    CONVERTING = "converting"

    def visit(self, default: typing.Callable[[], T_Result], converting: typing.Callable[[], T_Result]) -> T_Result:
        if self is ChapterResponseModelState.DEFAULT:
            return default()
        if self is ChapterResponseModelState.CONVERTING:
            return converting()
