public function mapToList($map)
    {
        $list = array();
        foreach ($map as $key => $value) {
            // explicitly pass key as UTF-8 byte array
            // pass value with automatic type detection
            $list []= new QVariant($key, Types::TYPE_QBYTE_ARRAY);
            $list []= $value;
        }
        return $list;
    }
public function mapToList($map)
    {
        $list = array();
        foreach ($map as $key => $value) {
            // explicitly pass key as UTF-8 byte array
            // pass value with automatic type detection
            $list []= new QVariant($key, Types::TYPE_QBYTE_ARRAY);
            $list []= $value;
        }
        return $list;
    }
public function mapToList ( $ map ) { $ list = array ( ) ; foreach ( $ map as $ key => $ value ) { // explicitly pass key as UTF-8 byte array // pass value with automatic type detection $ list [ ] = new QVariant ( $ key , Types :: TYPE_QBYTE_ARRAY ) ; $ list [ ] = $ value ; } return $ list ; }
converts the given map to a list

@param mixed[]|array<mixed> $map
@return mixed[]|array<mixed>
@internal
converts the given map to a list