Add a gson adapter for PlayerInventory.