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