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

from __future__ import annotations

from typing import Dict, Optional

from pydantic import BaseModel, Extra, constr


class Network(BaseModel):
    class Config:
        extra = Extra.forbid

    name: Optional[str] = None


class Model(BaseModel):
    class Config:
        extra = Extra.forbid

    networks: Dict[constr(regex=r'^[a-zA-Z0-9._-]+$'), Optional[Network]]
