(model: pydantic.BaseModel, *, indent: int | None = None)
| 126 | |
| 127 | |
| 128 | def model_json(model: pydantic.BaseModel, *, indent: int | None = None) -> str: |
| 129 | if PYDANTIC_V1: |
| 130 | return model.json(indent=indent) # type: ignore |
| 131 | return model.model_dump_json(indent=indent) |
| 132 | |
| 133 | |
| 134 | class _ModelDumpKwargs(TypedDict, total=False): |