void fromMap()

in resellertrade-20191227/include/alibabacloud/reseller_trade_20191227.hpp [244:401]


  void fromMap(map<string, boost::any> m) override {
    if (m.find("ActivitySite") != m.end() && !m["ActivitySite"].empty()) {
      activitySite = make_shared<long>(boost::any_cast<long>(m["ActivitySite"]));
    }
    if (m.find("Bid") != m.end() && !m["Bid"].empty()) {
      bid = make_shared<long>(boost::any_cast<long>(m["Bid"]));
    }
    if (m.find("CertainMoney") != m.end() && !m["CertainMoney"].empty()) {
      certainMoney = make_shared<double>(boost::any_cast<double>(m["CertainMoney"]));
    }
    if (m.find("ClientType") != m.end() && !m["ClientType"].empty()) {
      clientType = make_shared<string>(boost::any_cast<string>(m["ClientType"]));
    }
    if (m.find("CommodityType") != m.end() && !m["CommodityType"].empty()) {
      commodityType = make_shared<string>(boost::any_cast<string>(m["CommodityType"]));
    }
    if (m.find("ControlType") != m.end() && !m["ControlType"].empty()) {
      controlType = make_shared<string>(boost::any_cast<string>(m["ControlType"]));
    }
    if (m.find("CouponAmount") != m.end() && !m["CouponAmount"].empty()) {
      couponAmount = make_shared<double>(boost::any_cast<double>(m["CouponAmount"]));
    }
    if (m.find("CouponEndTime") != m.end() && !m["CouponEndTime"].empty()) {
      couponEndTime = make_shared<string>(boost::any_cast<string>(m["CouponEndTime"]));
    }
    if (m.find("CouponFixedType") != m.end() && !m["CouponFixedType"].empty()) {
      couponFixedType = make_shared<string>(boost::any_cast<string>(m["CouponFixedType"]));
    }
    if (m.find("CouponStartTime") != m.end() && !m["CouponStartTime"].empty()) {
      couponStartTime = make_shared<string>(boost::any_cast<string>(m["CouponStartTime"]));
    }
    if (m.find("CouponType") != m.end() && !m["CouponType"].empty()) {
      couponType = make_shared<string>(boost::any_cast<string>(m["CouponType"]));
    }
    if (m.find("Currency") != m.end() && !m["Currency"].empty()) {
      if (typeid(map<string, boost::any>) == m["Currency"].type()) {
        CreateCouponTemplateRequestCurrency model1;
        model1.fromMap(boost::any_cast<map<string, boost::any>>(m["Currency"]));
        currency = make_shared<CreateCouponTemplateRequestCurrency>(model1);
      }
    }
    if (m.find("Description") != m.end() && !m["Description"].empty()) {
      description = make_shared<string>(boost::any_cast<string>(m["Description"]));
    }
    if (m.find("DiscountRate") != m.end() && !m["DiscountRate"].empty()) {
      discountRate = make_shared<double>(boost::any_cast<double>(m["DiscountRate"]));
    }
    if (m.find("EndTime") != m.end() && !m["EndTime"].empty()) {
      endTime = make_shared<string>(boost::any_cast<string>(m["EndTime"]));
    }
    if (m.find("ExtendsMap") != m.end() && !m["ExtendsMap"].empty()) {
      map<string, string> map1 = boost::any_cast<map<string, string>>(m["ExtendsMap"]);
      map<string, string> toMap1;
      for (auto item:map1) {
         toMap1[item.first] = item.second;
      }
      extendsMap = make_shared<map<string, string>>(toMap1);
    }
    if (m.find("FromApp") != m.end() && !m["FromApp"].empty()) {
      fromApp = make_shared<string>(boost::any_cast<string>(m["FromApp"]));
    }
    if (m.find("ItemCodeSet") != m.end() && !m["ItemCodeSet"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["ItemCodeSet"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["ItemCodeSet"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      itemCodeSet = make_shared<vector<string>>(toVec1);
    }
    if (m.find("Market") != m.end() && !m["Market"].empty()) {
      market = make_shared<string>(boost::any_cast<string>(m["Market"]));
    }
    if (m.find("MarketType") != m.end() && !m["MarketType"].empty()) {
      marketType = make_shared<long>(boost::any_cast<long>(m["MarketType"]));
    }
    if (m.find("MaxRelease") != m.end() && !m["MaxRelease"].empty()) {
      maxRelease = make_shared<double>(boost::any_cast<double>(m["MaxRelease"]));
    }
    if (m.find("MessageId") != m.end() && !m["MessageId"].empty()) {
      messageId = make_shared<string>(boost::any_cast<string>(m["MessageId"]));
    }
    if (m.find("Name") != m.end() && !m["Name"].empty()) {
      name = make_shared<string>(boost::any_cast<string>(m["Name"]));
    }
    if (m.find("Operator") != m.end() && !m["Operator"].empty()) {
      operator_ = make_shared<string>(boost::any_cast<string>(m["Operator"]));
    }
    if (m.find("OrderTypeSet") != m.end() && !m["OrderTypeSet"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["OrderTypeSet"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["OrderTypeSet"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      orderTypeSet = make_shared<vector<string>>(toVec1);
    }
    if (m.find("PerLimitNum") != m.end() && !m["PerLimitNum"].empty()) {
      perLimitNum = make_shared<long>(boost::any_cast<long>(m["PerLimitNum"]));
    }
    if (m.find("PromotionId") != m.end() && !m["PromotionId"].empty()) {
      promotionId = make_shared<long>(boost::any_cast<long>(m["PromotionId"]));
    }
    if (m.find("Reason") != m.end() && !m["Reason"].empty()) {
      reason = make_shared<string>(boost::any_cast<string>(m["Reason"]));
    }
    if (m.find("RelativeSecond") != m.end() && !m["RelativeSecond"].empty()) {
      relativeSecond = make_shared<long>(boost::any_cast<long>(m["RelativeSecond"]));
    }
    if (m.find("RequestId") != m.end() && !m["RequestId"].empty()) {
      requestId = make_shared<string>(boost::any_cast<string>(m["RequestId"]));
    }
    if (m.find("SelectionIdSet") != m.end() && !m["SelectionIdSet"].empty()) {
      vector<string> toVec1;
      if (typeid(vector<boost::any>) == m["SelectionIdSet"].type()) {
        vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["SelectionIdSet"]);
        for (auto item:vec1) {
           toVec1.push_back(boost::any_cast<string>(item));
        }
      }
      selectionIdSet = make_shared<vector<string>>(toVec1);
    }
    if (m.find("SellerId") != m.end() && !m["SellerId"].empty()) {
      sellerId = make_shared<long>(boost::any_cast<long>(m["SellerId"]));
    }
    if (m.find("Site") != m.end() && !m["Site"].empty()) {
      site = make_shared<string>(boost::any_cast<string>(m["Site"]));
    }
    if (m.find("SpId") != m.end() && !m["SpId"].empty()) {
      spId = make_shared<long>(boost::any_cast<long>(m["SpId"]));
    }
    if (m.find("StartTime") != m.end() && !m["StartTime"].empty()) {
      startTime = make_shared<string>(boost::any_cast<string>(m["StartTime"]));
    }
    if (m.find("Type") != m.end() && !m["Type"].empty()) {
      type = make_shared<string>(boost::any_cast<string>(m["Type"]));
    }
    if (m.find("UniversalType") != m.end() && !m["UniversalType"].empty()) {
      universalType = make_shared<string>(boost::any_cast<string>(m["UniversalType"]));
    }
    if (m.find("UpperLimit") != m.end() && !m["UpperLimit"].empty()) {
      upperLimit = make_shared<double>(boost::any_cast<double>(m["UpperLimit"]));
    }
    if (m.find("UsageCount") != m.end() && !m["UsageCount"].empty()) {
      usageCount = make_shared<long>(boost::any_cast<long>(m["UsageCount"]));
    }
    if (m.find("UseScene") != m.end() && !m["UseScene"].empty()) {
      useScene = make_shared<string>(boost::any_cast<string>(m["UseScene"]));
    }
    if (m.find("UserPkAmount") != m.end() && !m["UserPkAmount"].empty()) {
      userPkAmount = make_shared<string>(boost::any_cast<string>(m["UserPkAmount"]));
    }
    if (m.find("ValidityType") != m.end() && !m["ValidityType"].empty()) {
      validityType = make_shared<string>(boost::any_cast<string>(m["ValidityType"]));
    }
  }