public function customFieldsToArray()
    {
        $result = [];
        foreach ($this->getCustomFields() as $field) {
            $result[$field->getInternalFieldName()] = $field->getValue();
        }

        return $result;
    }
public function customFieldsToArray()
    {
        $result = [];
        foreach ($this->getCustomFields() as $field) {
            $result[$field->getInternalFieldName()] = $field->getValue();
        }

        return $result;
    }
public function customFieldsToArray ( ) { $ result = [ ] ; foreach ( $ this -> getCustomFields ( ) as $ field ) { $ result [ $ field -> getInternalFieldName ( ) ] = $ field -> getValue ( ) ; } return $ result ; }
Returns fields in array format ready
for magento import

@return array
Returns fields in array format ready for magento import