| 1 | #include "mtx/responses/media.hpp" |
|---|---|
| 2 | |
| 3 | #include <nlohmann/json.hpp> |
| 4 | |
| 5 | using json = nlohmann::json; |
| 6 | |
| 7 | namespace mtx { |
| 8 | namespace responses { |
| 9 | |
| 10 | void |
| 11 | from_json(const json &obj, ContentURI &res) |
| 12 | { |
| 13 | res.content_uri = obj.at(key: "content_uri").get<std::string>(); |
| 14 | } |
| 15 | } |
| 16 | } |
| 17 |