Generic
Magento\Usps\Model\Source\Generic
What it does
This class serves as a generic source model for USPS shipping method configuration options in the Magento admin panel.
Developers use this class to populate dropdown or multiselect fields with USPS-specific codes (like shipping methods, container types, or sizes) by extending it and setting the appropriate code property.
It retrieves available options from the USPS carrier model and formats them for use in backend forms.
Public Methods
- toOptionArray()