Ask a question to get started
Enter to send•Shift+Enter new line
Convert any Pydantic model to dict, compatible with both v1 and v2.
pydantic_to_dict( obj: Any, **kwargs: Any = {}, ) -> dict[str, Any]
obj
Any
The Pydantic model to convert.
**kwargs
{}
Additional arguments passed to model_dump/dict.
model_dump
dict