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

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel, ConfigDict


class Foo(BaseModel):
    model_config = ConfigDict(
        extra='allow',
    )
    x: Optional[int] = None


class Bar(BaseModel):
    model_config = ConfigDict(
        extra='allow',
    )
    y: Optional[int] = None


class Baz(BaseModel):
    model_config = ConfigDict(
        extra='allow',
    )
    z: Optional[int] = None


class Test(BaseModel):
    model_config = ConfigDict(
        extra='allow',
    )
    foo: Foo
    bar: Optional[Bar] = None
    baz: Optional[Baz] = None
