Debian Codegraph @

mtxclient/lib/structs/responses/create_room.cpp

raw symbols SCIP
1 #include <nlohmann/json.hpp>
2
3 #include "mtx/identifiers.hpp"
4 #include "mtx/responses/create_room.hpp"
5
6 namespace mtx {
7 namespace responses {
8
9 void
10 from_json(const nlohmann::json &obj, CreateRoom &response)
11 {
12 response.room_id = obj.at("room_id").get<identifiers::Room>();
13 }
14 }
15 }