void fromMap()

in yuqing-20220301/include/alibabacloud/yuqing_20220301.hpp [490:841]


  void fromMap(map<string, boost::any> m) override {
    if (m.find("assKeywordList") != m.end() && !m["assKeywordList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["assKeywordList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["assKeywordList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      assKeywordList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("atAuthorNameList") != m.end() && !m["atAuthorNameList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["atAuthorNameList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["atAuthorNameList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      atAuthorNameList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("authorNameList") != m.end() && !m["authorNameList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["authorNameList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["authorNameList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      authorNameList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("commentsLevel") != m.end() && !m["commentsLevel"].empty()) {
      commentsLevel = make_shared<long>(boost::any_cast<long>(m["commentsLevel"]));
    }
    if (m.find("contentLenLevel") != m.end() && !m["contentLenLevel"].empty()) {
      contentLenLevel = make_shared<long>(boost::any_cast<long>(m["contentLenLevel"]));
    }
    if (m.find("createTimeEnd") != m.end() && !m["createTimeEnd"].empty()) {
      createTimeEnd = make_shared<long>(boost::any_cast<long>(m["createTimeEnd"]));
    }
    if (m.find("createTimeStart") != m.end() && !m["createTimeStart"].empty()) {
      createTimeStart = make_shared<long>(boost::any_cast<long>(m["createTimeStart"]));
    }
    if (m.find("docContentSign") != m.end() && !m["docContentSign"].empty()) {
      docContentSign = make_shared<string>(boost::any_cast<string>(m["docContentSign"]));
    }
    if (m.find("docIdList") != m.end() && !m["docIdList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["docIdList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["docIdList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      docIdList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("duplicateRemoval") != m.end() && !m["duplicateRemoval"].empty()) {
      duplicateRemoval = make_shared<bool>(boost::any_cast<bool>(m["duplicateRemoval"]));
    }
    if (m.find("emotionType") != m.end() && !m["emotionType"].empty()) {
      emotionType = make_shared<long>(boost::any_cast<long>(m["emotionType"]));
    }
    if (m.find("enableKeywordHighlight") != m.end() && !m["enableKeywordHighlight"].empty()) {
      enableKeywordHighlight = make_shared<bool>(boost::any_cast<bool>(m["enableKeywordHighlight"]));
    }
    if (m.find("excludeAtAuthorNameList") != m.end() && !m["excludeAtAuthorNameList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeAtAuthorNameList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeAtAuthorNameList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeAtAuthorNameList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("excludeAuthorNameList") != m.end() && !m["excludeAuthorNameList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeAuthorNameList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeAuthorNameList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeAuthorNameList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("excludeHostNameList") != m.end() && !m["excludeHostNameList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeHostNameList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeHostNameList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeHostNameList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("excludeKeywordList") != m.end() && !m["excludeKeywordList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeKeywordList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeKeywordList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeKeywordList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("excludeKeywordListInTitle") != m.end() && !m["excludeKeywordListInTitle"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeKeywordListInTitle"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeKeywordListInTitle"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeKeywordListInTitle = make_shared<vector<string>>(toVec1);
    }
    if (m.find("excludeKeywordTagIds") != m.end() && !m["excludeKeywordTagIds"].empty()) {
      vector<long> toVec1;
      if (typeid(vector<boost::any>) == m["excludeKeywordTagIds"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeKeywordTagIds"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<long>(item));
        }
      }
      excludeKeywordTagIds = make_shared<vector<long>>(toVec1);
    }
    if (m.find("excludeMaterialTagList") != m.end() && !m["excludeMaterialTagList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeMaterialTagList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeMaterialTagList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeMaterialTagList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("excludeMediaLibraryIdList") != m.end() && !m["excludeMediaLibraryIdList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeMediaLibraryIdList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeMediaLibraryIdList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeMediaLibraryIdList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("excludeMediaNameList") != m.end() && !m["excludeMediaNameList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeMediaNameList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeMediaNameList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeMediaNameList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("excludeMediaTypeList") != m.end() && !m["excludeMediaTypeList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeMediaTypeList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeMediaTypeList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeMediaTypeList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("excludeMessageTypeList") != m.end() && !m["excludeMessageTypeList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["excludeMessageTypeList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["excludeMessageTypeList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      excludeMessageTypeList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("fieldConditions") != m.end() && !m["fieldConditions"].empty()) {
      if (typeid(vector<boost::any>) == m["fieldConditions"].type()) {
        vector<FieldCondition> expect1;
        for(auto item1:boost::any_cast<vector<boost::any>>(m["fieldConditions"])){
          if (typeid(map<string, boost::any>) == item1.type()) {
            FieldCondition model2;
            model2.fromMap(boost::any_cast<map<string, boost::any>>(item1));
            expect1.push_back(model2);
          }
        }
        fieldConditions = make_shared<vector<FieldCondition>>(expect1);
      }
    }
    if (m.find("filterId") != m.end() && !m["filterId"].empty()) {
      filterId = make_shared<long>(boost::any_cast<long>(m["filterId"]));
    }
    if (m.find("hasAudio") != m.end() && !m["hasAudio"].empty()) {
      hasAudio = make_shared<bool>(boost::any_cast<bool>(m["hasAudio"]));
    }
    if (m.find("hasImage") != m.end() && !m["hasImage"].empty()) {
      hasImage = make_shared<bool>(boost::any_cast<bool>(m["hasImage"]));
    }
    if (m.find("hasMultiModeContent") != m.end() && !m["hasMultiModeContent"].empty()) {
      hasMultiModeContent = make_shared<bool>(boost::any_cast<bool>(m["hasMultiModeContent"]));
    }
    if (m.find("hasVideo") != m.end() && !m["hasVideo"].empty()) {
      hasVideo = make_shared<bool>(boost::any_cast<bool>(m["hasVideo"]));
    }
    if (m.find("hostNameList") != m.end() && !m["hostNameList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["hostNameList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["hostNameList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      hostNameList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("influenceLevel") != m.end() && !m["influenceLevel"].empty()) {
      influenceLevel = make_shared<long>(boost::any_cast<long>(m["influenceLevel"]));
    }
    if (m.find("keywordTagIds") != m.end() && !m["keywordTagIds"].empty()) {
      vector<long> toVec1;
      if (typeid(vector<boost::any>) == m["keywordTagIds"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["keywordTagIds"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<long>(item));
        }
      }
      keywordTagIds = make_shared<vector<long>>(toVec1);
    }
    if (m.find("likesLevel") != m.end() && !m["likesLevel"].empty()) {
      likesLevel = make_shared<long>(boost::any_cast<long>(m["likesLevel"]));
    }
    if (m.find("materialTagList") != m.end() && !m["materialTagList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["materialTagList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["materialTagList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      materialTagList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("mediaLibraryIdList") != m.end() && !m["mediaLibraryIdList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["mediaLibraryIdList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["mediaLibraryIdList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      mediaLibraryIdList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("mediaNameList") != m.end() && !m["mediaNameList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["mediaNameList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["mediaNameList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      mediaNameList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("mediaTypeList") != m.end() && !m["mediaTypeList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["mediaTypeList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["mediaTypeList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      mediaTypeList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("messageTypeList") != m.end() && !m["messageTypeList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["messageTypeList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["messageTypeList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      messageTypeList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("pageNow") != m.end() && !m["pageNow"].empty()) {
      pageNow = make_shared<long>(boost::any_cast<long>(m["pageNow"]));
    }
    if (m.find("pageSize") != m.end() && !m["pageSize"].empty()) {
      pageSize = make_shared<long>(boost::any_cast<long>(m["pageSize"]));
    }
    if (m.find("parentDocId") != m.end() && !m["parentDocId"].empty()) {
      parentDocId = make_shared<string>(boost::any_cast<string>(m["parentDocId"]));
    }
    if (m.find("posKeywordList") != m.end() && !m["posKeywordList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["posKeywordList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["posKeywordList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      posKeywordList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("posKeywordListInTitle") != m.end() && !m["posKeywordListInTitle"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["posKeywordListInTitle"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["posKeywordListInTitle"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      posKeywordListInTitle = make_shared<vector<string>>(toVec1);
    }
    if (m.find("projectId") != m.end() && !m["projectId"].empty()) {
      projectId = make_shared<long>(boost::any_cast<long>(m["projectId"]));
    }
    if (m.find("propagationLevel") != m.end() && !m["propagationLevel"].empty()) {
      propagationLevel = make_shared<long>(boost::any_cast<long>(m["propagationLevel"]));
    }
    if (m.find("publishTimeEnd") != m.end() && !m["publishTimeEnd"].empty()) {
      publishTimeEnd = make_shared<long>(boost::any_cast<long>(m["publishTimeEnd"]));
    }
    if (m.find("publishTimeStart") != m.end() && !m["publishTimeStart"].empty()) {
      publishTimeStart = make_shared<long>(boost::any_cast<long>(m["publishTimeStart"]));
    }
    if (m.find("readsLevel") != m.end() && !m["readsLevel"].empty()) {
      readsLevel = make_shared<long>(boost::any_cast<long>(m["readsLevel"]));
    }
    if (m.find("relevanceLevel") != m.end() && !m["relevanceLevel"].empty()) {
      relevanceLevel = make_shared<long>(boost::any_cast<long>(m["relevanceLevel"]));
    }
    if (m.find("repostLevel") != m.end() && !m["repostLevel"].empty()) {
      repostLevel = make_shared<long>(boost::any_cast<long>(m["repostLevel"]));
    }
    if (m.find("sortBy") != m.end() && !m["sortBy"].empty()) {
      sortBy = make_shared<string>(boost::any_cast<string>(m["sortBy"]));
    }
    if (m.find("sortByDirection") != m.end() && !m["sortByDirection"].empty()) {
      sortByDirection = make_shared<string>(boost::any_cast<string>(m["sortByDirection"]));
    }
    if (m.find("topicList") != m.end() && !m["topicList"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["topicList"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["topicList"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      topicList = make_shared<vector<string>>(toVec1);
    }
    if (m.find("updateTimeEnd") != m.end() && !m["updateTimeEnd"].empty()) {
      updateTimeEnd = make_shared<long>(boost::any_cast<long>(m["updateTimeEnd"]));
    }
    if (m.find("updateTimeStart") != m.end() && !m["updateTimeStart"].empty()) {
      updateTimeStart = make_shared<long>(boost::any_cast<long>(m["updateTimeStart"]));
    }
  }