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

from __future__ import annotations

from dataclasses import dataclass, field


@dataclass
class Address:
    street: str | None = None
    city: str | None = None


@dataclass
class Contact:
    email: str | None = None
    phone: str | None = None


@dataclass
class Model:
    name: str
    address: Address | None = field(default_factory=Address)
    contact: Contact | None = field(default_factory=Contact)
