Debian Codegraph @

mtxclient/lib/structs/events/ephemeral/typing.cpp

raw symbols SCIP
1 #include <nlohmann/json.hpp>
2
3 #include "mtx/events/ephemeral/typing.hpp"
4
5 namespace mtx {
6 namespace events {
7 namespace ephemeral {
8
9 void
10 from_json(const nlohmann::json &obj, Typing &content)
11 {
12 content.user_ids = obj.at("user_ids").get<std::vector<std::string>>();
13 }
14
15 void
16 to_json(nlohmann::json &obj, const Typing &content)
17 {
18 obj["user_ids"] = content.user_ids;
19 }
20
21 } // namespace state
22 } // namespace events
23 } // namespace mtx