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

from __future__ import annotations

from msgspec import UNSET, Struct, UnsetType, field


class Address(Struct):
    street: str | UnsetType = UNSET
    city: str | UnsetType = UNSET


class Contact(Struct):
    email: str | UnsetType = UNSET
    phone: str | UnsetType = UNSET


class Model(Struct):
    name: str
    address: Address | UnsetType = field(default_factory=Address)
    metadata: dict[str, str] | Contact | UnsetType = field(default_factory=Contact)
