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

from typing import Optional

from pydantic import BaseModel, RootModel


class TreeNode(BaseModel):
    value: Optional[str] = None
    children: Optional[list["TreeNode"]] = None


class Model(RootModel[TreeNode]):
    root: TreeNode


TreeNode.model_rebuild()
