Skip to content
Snippets Groups Projects
Commit cf98fbef authored by Andrea Formica's avatar Andrea Formica
Browse files

add missing include

parent accba4fb
No related branches found
No related tags found
3 merge requests!12Release 2.1.0,!4Error handling updated,!2added methods to get lists of objects
......@@ -5,6 +5,7 @@
#include <string>
#include <vector>
#include <optional>
#include "nlohmann/json.hpp"
using json = nlohmann::json;
......@@ -200,6 +201,13 @@ public:
globalTagSet.datatype = j.value("datatype", "");
globalTagSet.format = j.value("format", "GlobalTagSetDto");
// Parse other properties as needed
CrestBaseResponse cbr = CrestBaseResponse::from_json(j);
if (cbr.page.has_value()) {
globalTagSet.page = cbr.page.value();
}
if (cbr.filter.has_value()) {
globalTagSet.filter = cbr.filter.value();
}
return globalTagSet;
}
};
......@@ -289,6 +297,13 @@ public:
tagSet.datatype = j.value("datatype", "");
tagSet.format = j.value("format", "TagSetDto");
// Parse other properties as needed
CrestBaseResponse cbr = CrestBaseResponse::from_json(j);
if (cbr.page.has_value()) {
tagSet.page = cbr.page.value();
}
if (cbr.filter.has_value()) {
tagSet.filter = cbr.filter.value();
}
return tagSet;
}
};
......@@ -355,6 +370,13 @@ public:
tagSet.datatype = j.value("datatype", "");
tagSet.format = j.value("format", "");
// Parse other properties as needed
CrestBaseResponse cbr = CrestBaseResponse::from_json(j);
if (cbr.page.has_value()) {
tagSet.page = cbr.page.value();
}
if (cbr.filter.has_value()) {
tagSet.filter = cbr.filter.value();
}
return tagSet;
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment