public function toMap()

in php/src/Models/SearchQuery.php [106:144]


    public function toMap()
    {
        $res = [];
        if (null !== $this->query) {
            $res['query'] = $this->query;
        }
        if (null !== $this->fetchFields) {
            $res['fetch_fields'] = $this->fetchFields;
        }
        if (null !== $this->qp) {
            $res['qp'] = $this->qp;
        }
        if (null !== $this->disable) {
            $res['disable'] = $this->disable;
        }
        if (null !== $this->firstRankName) {
            $res['first_rank_name'] = $this->firstRankName;
        }
        if (null !== $this->secondRankName) {
            $res['second_rank_name'] = $this->secondRankName;
        }
        if (null !== $this->userId) {
            $res['user_id'] = $this->userId;
        }
        if (null !== $this->abtest) {
            $res['abtest'] = $this->abtest;
        }
        if (null !== $this->categoryPrediction) {
            $res['category_prediction'] = $this->categoryPrediction;
        }
        if (null !== $this->rawQuery) {
            $res['raw_query'] = $this->rawQuery;
        }
        if (null !== $this->summary) {
            $res['summary'] = $this->summary;
        }

        return $res;
    }