Model
Mapper
Magento\Customer\Model\Address\Mapper
What it does
This class converts a Customer Address data object into a flat associative array format.
Developers use this when they need to transform address objects from the API layer into simple array structures for templates, data processing, or legacy code compatibility.
It ensures street address data is properly preserved as an array during conversion.
Public Methods
- toFlatArray()