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

from __future__ import annotations

from pydantic.dataclasses import dataclass


@dataclass
class Child:
    name: str
    age: int | None = None


@dataclass
class Parent:
    id: str
    child: Child
    children: list[Child] | None = None
