pub fn pydict_to_params(
py: Python<'_>,
dict: &Py<PyDict>,
) -> PyResult<Option<Params>>Expand description
Converts a Python dict to Params (IndexMap<String, Value>).
An empty dict canonicalizes to None, distinguishing “no params provided”
from a populated map. This is not the inverse of params_to_pydict, which
accepts &Params (not Option<&Params>); callers handle the outer option.
§Errors
Returns a PyErr if:
- the dict cannot be serialized to JSON
- the JSON is not a valid object