Model
ItemConverter
Magento\Quote\Model\Cart\Totals\ItemConverter
What it does
This class converts Magento 2 quote item models into totals item data objects for API responses.
Developers use this when displaying shopping cart items with their calculated totals, prices, and configured options in a standardized format.
It formats product options and ensures the data structure matches the API interface requirements for cart totals endpoints.
Public Methods
- modelToDataObject()