to_dict
to_dict(
obj: int | float | str | bool | dict[Any, Any] | list[Any] | tuple[Any, ...] | Any,
exclude: tuple[str, ...] = (),
no_recursive: tuple[Any, ...] = ()
) -> Any
Parameters:
| Name | Description |
|---|---|
obj | Object to convert Type: int | float | str | bool | dict[typing.Any, typing.Any] | list[typing.Any] | tuple[typing.Any, …] | Any |
exclude | Keys to exclude. Defaults to (). Type: tuple[str, …] Default: () |
no_recursive | Types to exclude from recursive conversion. Defaults to (). Type: tuple[typing.Any, …] Default: () |