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

from __future__ import annotations

from pydantic import BaseModel, ConfigDict, constr


class Network(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    name: str | None = None


class Model(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    networks: dict[constr(pattern=r'^[a-zA-Z0-9._-]+$'), Network | None]
