#include "mtx/responses/members.hpp" #include #include "mtx/log.hpp" namespace mtx { namespace responses { void from_json(const nlohmann::json &obj, Members &res) { if (obj.contains("chunk")) { for (const auto &e : obj["chunk"]) { try { res.chunk.push_back(e.get>()); } catch (const std::exception &e) { utils::log::log()->warn("Failed to parse member event in members chunk: {}", e.what()); } } } } } }