Lines Matching refs:obj
64 void GetOnDemandArrayFromJson(int32_t eventId, const nlohmann::json& obj,
66 void GetOnDemandConditionsFromJson(const nlohmann::json& obj,
68 void GetOnDemandExtraMessagesFromJson(const nlohmann::json& obj,
72 static inline void GetBoolFromJson(const nlohmann::json& obj, const std::string& key, bool& out)
74 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_boolean()) {
75 obj[key.c_str()].get_to(out);
79 static inline void GetStringFromJson(const nlohmann::json& obj, const std::string& key, std::string& out)
81 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_string()) {
82 obj[key.c_str()].get_to(out);
86 static inline void GetInt32FromJson(const nlohmann::json& obj, const std::string& key, int32_t& out)
88 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_number_integer()) {
89 obj[key.c_str()].get_to(out);
93 static inline void GetStringArrayFromJson(const nlohmann::json& obj, const std::string& key,
96 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_array()) {
97 for (auto& item : obj[key.c_str()]) {
105 static inline void GetIntArrayFromJson(const nlohmann::json& obj, const std::string& key,
108 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_array()) {
109 for (auto& item : obj[key.c_str()]) {
117 static inline void GetIntArrayFromJson(const nlohmann::json& obj, const std::string& key,
120 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_array()) {
121 for (auto& item : obj[key.c_str()]) {