# 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, Extra


class Foo(BaseModel):
    class Config:
        extra = Extra.allow

    x: Optional[int] = None


class Bar(BaseModel):
    class Config:
        extra = Extra.allow

    y: Optional[int] = None


class Baz(BaseModel):
    class Config:
        extra = Extra.allow

    z: Optional[int] = None


class Test(BaseModel):
    class Config:
        extra = Extra.allow

    foo: Foo
    bar: Optional[Bar] = None
    baz: Optional[Baz] = None
