from_dict

classmethod DbInventory.from_dict(d)

Create an inventory from a dictionary.

The dictionary has to be in a form returned by the as_dict method.

Parameters

d (dict) – Dictionary representation of the inventory.

See also

as_dict()