sparkle/libs/utils/functions.hpp

8 lines
226 B
C++
Raw Permalink Normal View History

2025-01-20 04:03:27 +05:00
#ifndef UTILS_FUNCTIONS_HPP_
#define UTILS_FUNCTIONS_HPP_
struct functions {
static inline std::string isNull(const nlohmann::json& str) {
2025-01-20 15:14:27 +05:00
return str.is_null() ? str.dump() : str.get<std::string>();
2025-01-20 04:03:27 +05:00
}
};
#endif