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