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

from __future__ import annotations

from pydantic import BaseModel, RootModel


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


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


TreeNode.model_rebuild()
