Model
ProductOptionProcessor
Magento\Catalog\Model\ProductOptionProcessor
What it does
This class converts product custom options between two formats: from API data structures (ProductOptionInterface) to buy request objects used when adding products to cart, and vice versa.
Developers use this when handling product custom options during checkout, order processing, or when working with the catalog API to ensure custom options are properly formatted for internal Magento operations.
Public Methods
- convertToBuyRequest()
- convertToProductOption()