Inventory.
as_dict
Convert the inventory to a dictionary.
The style to use for the conversion. Currently not supported.