1 | #include <nlohmann/json.hpp> |
---|---|
2 | |
3 | #include "mtx/events/account_data/fully_read.hpp" |
4 | |
5 | namespace mtx { |
6 | namespace events { |
7 | namespace account_data { |
8 | |
9 | void |
10 | from_json(const nlohmann::json &obj, FullyRead &content) |
11 | { |
12 | content.event_id = obj.at(key: "event_id").get<std::string>(); |
13 | } |
14 | |
15 | void |
16 | to_json(nlohmann::json &obj, const FullyRead &content) |
17 | { |
18 | obj["event_id"] = content.event_id; |
19 | } |
20 | |
21 | } // namespace state |
22 | } // namespace events |
23 | } // namespace mtx |
24 |