ShippingMethodConverter
Magento\Quote\Model\Cart\ShippingMethodConverter
What it does
The ShippingMethodConverter class transforms shipping rate models into standardized shipping method data objects that can be used by the Magento 2 API.
Developers use this when they need to convert internal shipping rate information into a format suitable for API responses, including currency conversion and tax calculations.
It's primarily used in checkout and cart operations where shipping methods need to be presented to customers or external systems.
Public Methods
- modelToDataObject()