# generated by datamodel-codegen:
#   filename:  oneof_const_enum_type_list.yaml
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from enum import Enum

from pydantic import Field, RootModel


class ModeWithNullEnum(Enum):
    on = 'on'
    off = 'off'


class ModeWithNull(RootModel[ModeWithNullEnum | None]):
    root: ModeWithNullEnum | None = Field(None, title='Mode With Null')
