in linkcard-20210520/include/alibabacloud/linkcard_20210520.hpp [2193:2351]
void fromMap(map<string, boost::any> m) override {
if (m.find("ActiveTime") != m.end() && !m["ActiveTime"].empty()) {
activeTime = make_shared<string>(boost::any_cast<string>(m["ActiveTime"]));
}
if (m.find("ActiveType") != m.end() && !m["ActiveType"].empty()) {
activeType = make_shared<string>(boost::any_cast<string>(m["ActiveType"]));
}
if (m.find("AliFee") != m.end() && !m["AliFee"].empty()) {
aliFee = make_shared<string>(boost::any_cast<string>(m["AliFee"]));
}
if (m.find("AliyunOrderId") != m.end() && !m["AliyunOrderId"].empty()) {
aliyunOrderId = make_shared<string>(boost::any_cast<string>(m["AliyunOrderId"]));
}
if (m.find("ApnName") != m.end() && !m["ApnName"].empty()) {
apnName = make_shared<string>(boost::any_cast<string>(m["ApnName"]));
}
if (m.find("AutoLimitResume") != m.end() && !m["AutoLimitResume"].empty()) {
autoLimitResume = make_shared<bool>(boost::any_cast<bool>(m["AutoLimitResume"]));
}
if (m.find("AutoRebindReuse") != m.end() && !m["AutoRebindReuse"].empty()) {
autoRebindReuse = make_shared<bool>(boost::any_cast<bool>(m["AutoRebindReuse"]));
}
if (m.find("CardLimitSpeedThreshold") != m.end() && !m["CardLimitSpeedThreshold"].empty()) {
cardLimitSpeedThreshold = make_shared<long>(boost::any_cast<long>(m["CardLimitSpeedThreshold"]));
}
if (m.find("CardLimitStopThreshold") != m.end() && !m["CardLimitStopThreshold"].empty()) {
cardLimitStopThreshold = make_shared<long>(boost::any_cast<long>(m["CardLimitStopThreshold"]));
}
if (m.find("CertifyStatus") != m.end() && !m["CertifyStatus"].empty()) {
certifyStatus = make_shared<string>(boost::any_cast<string>(m["CertifyStatus"]));
}
if (m.find("CertifyType") != m.end() && !m["CertifyType"].empty()) {
certifyType = make_shared<string>(boost::any_cast<string>(m["CertifyType"]));
}
if (m.find("CredentialInstanceId") != m.end() && !m["CredentialInstanceId"].empty()) {
credentialInstanceId = make_shared<string>(boost::any_cast<string>(m["CredentialInstanceId"]));
}
if (m.find("CredentialLimitSpeedThreshold") != m.end() && !m["CredentialLimitSpeedThreshold"].empty()) {
credentialLimitSpeedThreshold = make_shared<long>(boost::any_cast<long>(m["CredentialLimitSpeedThreshold"]));
}
if (m.find("CredentialLimitStopThreshold") != m.end() && !m["CredentialLimitStopThreshold"].empty()) {
credentialLimitStopThreshold = make_shared<long>(boost::any_cast<long>(m["CredentialLimitStopThreshold"]));
}
if (m.find("CredentialNo") != m.end() && !m["CredentialNo"].empty()) {
credentialNo = make_shared<string>(boost::any_cast<string>(m["CredentialNo"]));
}
if (m.find("CredentialType") != m.end() && !m["CredentialType"].empty()) {
credentialType = make_shared<string>(boost::any_cast<string>(m["CredentialType"]));
}
if (m.find("DataLevel") != m.end() && !m["DataLevel"].empty()) {
dataLevel = make_shared<string>(boost::any_cast<string>(m["DataLevel"]));
}
if (m.find("DataType") != m.end() && !m["DataType"].empty()) {
dataType = make_shared<string>(boost::any_cast<string>(m["DataType"]));
}
if (m.find("DeviceImei") != m.end() && !m["DeviceImei"].empty()) {
deviceImei = make_shared<string>(boost::any_cast<string>(m["DeviceImei"]));
}
if (m.find("DirectionalGroupId") != m.end() && !m["DirectionalGroupId"].empty()) {
directionalGroupId = make_shared<string>(boost::any_cast<string>(m["DirectionalGroupId"]));
}
if (m.find("DirectionalGroupName") != m.end() && !m["DirectionalGroupName"].empty()) {
directionalGroupName = make_shared<string>(boost::any_cast<string>(m["DirectionalGroupName"]));
}
if (m.find("ExpireTime") != m.end() && !m["ExpireTime"].empty()) {
expireTime = make_shared<string>(boost::any_cast<string>(m["ExpireTime"]));
}
if (m.find("FlowThresholdUnit") != m.end() && !m["FlowThresholdUnit"].empty()) {
flowThresholdUnit = make_shared<string>(boost::any_cast<string>(m["FlowThresholdUnit"]));
}
if (m.find("Iccid") != m.end() && !m["Iccid"].empty()) {
iccid = make_shared<string>(boost::any_cast<string>(m["Iccid"]));
}
if (m.find("Imsi") != m.end() && !m["Imsi"].empty()) {
vector<string> toVec1;
if (typeid(vector<boost::any>) == m["Imsi"].type()) {
vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["Imsi"]);
for (auto item:vec1) {
toVec1.push_back(boost::any_cast<string>(item));
}
}
imsi = make_shared<vector<string>>(toVec1);
}
if (m.find("Ip") != m.end() && !m["Ip"].empty()) {
vector<string> toVec1;
if (typeid(vector<boost::any>) == m["Ip"].type()) {
vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["Ip"]);
for (auto item:vec1) {
toVec1.push_back(boost::any_cast<string>(item));
}
}
ip = make_shared<vector<string>>(toVec1);
}
if (m.find("IsAutoRecharge") != m.end() && !m["IsAutoRecharge"].empty()) {
isAutoRecharge = make_shared<bool>(boost::any_cast<bool>(m["IsAutoRecharge"]));
}
if (m.find("Msisdn") != m.end() && !m["Msisdn"].empty()) {
vector<string> toVec1;
if (typeid(vector<boost::any>) == m["Msisdn"].type()) {
vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["Msisdn"]);
for (auto item:vec1) {
toVec1.push_back(boost::any_cast<string>(item));
}
}
msisdn = make_shared<vector<string>>(toVec1);
}
if (m.find("NotifyId") != m.end() && !m["NotifyId"].empty()) {
notifyId = make_shared<string>(boost::any_cast<string>(m["NotifyId"]));
}
if (m.find("OpenAccountTime") != m.end() && !m["OpenAccountTime"].empty()) {
openAccountTime = make_shared<string>(boost::any_cast<string>(m["OpenAccountTime"]));
}
if (m.find("OpenSms") != m.end() && !m["OpenSms"].empty()) {
openSms = make_shared<bool>(boost::any_cast<bool>(m["OpenSms"]));
}
if (m.find("OsStatus") != m.end() && !m["OsStatus"].empty()) {
osStatus = make_shared<string>(boost::any_cast<string>(m["OsStatus"]));
}
if (m.find("Period") != m.end() && !m["Period"].empty()) {
period = make_shared<string>(boost::any_cast<string>(m["Period"]));
}
if (m.find("PeriodAddFlow") != m.end() && !m["PeriodAddFlow"].empty()) {
periodAddFlow = make_shared<string>(boost::any_cast<string>(m["PeriodAddFlow"]));
}
if (m.find("PeriodRestFlow") != m.end() && !m["PeriodRestFlow"].empty()) {
periodRestFlow = make_shared<string>(boost::any_cast<string>(m["PeriodRestFlow"]));
}
if (m.find("PeriodSmsUse") != m.end() && !m["PeriodSmsUse"].empty()) {
periodSmsUse = make_shared<string>(boost::any_cast<string>(m["PeriodSmsUse"]));
}
if (m.find("PrivateNetworkSegment") != m.end() && !m["PrivateNetworkSegment"].empty()) {
privateNetworkSegment = make_shared<string>(boost::any_cast<string>(m["PrivateNetworkSegment"]));
}
if (m.find("SimType") != m.end() && !m["SimType"].empty()) {
simType = make_shared<string>(boost::any_cast<string>(m["SimType"]));
}
if (m.find("Status") != m.end() && !m["Status"].empty()) {
status = make_shared<string>(boost::any_cast<string>(m["Status"]));
}
if (m.find("TagList") != m.end() && !m["TagList"].empty()) {
if (typeid(vector<boost::any>) == m["TagList"].type()) {
vector<GetCardDetailResponseBodyDataVsimCardInfoTagList> expect1;
for(auto item1:boost::any_cast<vector<boost::any>>(m["TagList"])){
if (typeid(map<string, boost::any>) == item1.type()) {
GetCardDetailResponseBodyDataVsimCardInfoTagList model2;
model2.fromMap(boost::any_cast<map<string, boost::any>>(item1));
expect1.push_back(model2);
}
}
tagList = make_shared<vector<GetCardDetailResponseBodyDataVsimCardInfoTagList>>(expect1);
}
}
if (m.find("Vendor") != m.end() && !m["Vendor"].empty()) {
vendor = make_shared<string>(boost::any_cast<string>(m["Vendor"]));
}
if (m.find("VsimInstanceId") != m.end() && !m["VsimInstanceId"].empty()) {
vsimInstanceId = make_shared<long>(boost::any_cast<long>(m["VsimInstanceId"]));
}
}