protected function unmapAttributes(array &$data)
    {
        $map = array_flip($this->attributeMap);
        $out = [];

        foreach ($data as $key => &$value) {
            if (isset($map[$key])) {
                $key = $map[$key];
            }
            $out[$key] = $value;
        }

        return $out;
    }
protected function unmapAttributes(array &$data)
    {
        $map = array_flip($this->attributeMap);
        $out = [];

        foreach ($data as $key => &$value) {
            if (isset($map[$key])) {
                $key = $map[$key];
            }
            $out[$key] = $value;
        }

        return $out;
    }
protected function unmapAttributes ( array & $ data ) { $ map = array_flip ( $ this -> attributeMap ) ; $ out = [ ] ; foreach ( $ data as $ key => & $ value ) { if ( isset ( $ map [ $ key ] ) ) { $ key = $ map [ $ key ] ; } $ out [ $ key ] = $ value ; } return $ out ; }
Reverse remap the attribute keys

@param array $data

@return array
Reverse remap the attribute keys