Model
ItemConverter
Magento\Quote\Model\Cart\Totals\ItemConverter
What it does
This class converts quote item models into totals item data objects for cart totals display.
Developers use it when they need to transform cart items with their options and pricing information into a standardized format for API responses or frontend rendering.
It handles formatting of product configuration options and dispatches events for additional item data processing.
Public Methods
- modelToDataObject()