Inventory itself is not serializable. I think this other thread is similar to what you’re asking here.
Inventory
My response: