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

from __future__ import annotations

from typing import Literal

from pydantic import BaseModel, Field


class A(BaseModel):
    type: Literal['a'] = 'a'


type Alias = A | None


class Model(BaseModel):
    x: Alias | None = Field({'type': 'a'}, validate_default=True)
