model_dump_yaml

model_dump_yaml(model: pydantic.BaseModel, *, exclude_none: bool = False, exclude_unset: bool = False, exclude: set[str] | None = None) str[source]

Dump the model as YAML string.