Model
Mapper
Magento\Customer\Model\Customer\Mapper
What it does
This class converts CustomerInterface data objects into flat arrays, which is useful when you need to transform customer data into a simple key-value format for processing, storage, or output.
Developers use this when working with customer data that needs to be serialized, exported, or passed to systems that expect flat array structures rather than complex objects.
Public Methods
- toFlatArray()