| 36 | |
| 37 | template <typename T> |
| 38 | Json Bookmark<T>::toJson() const { |
| 39 | JsonObject result; |
| 40 | result["target"] = jsonFromBookmarkTarget<T>(target); |
| 41 | result["targetName"] = targetName; |
| 42 | result["bookmarkName"] = bookmarkName; |
| 43 | result["icon"] = icon; |
| 44 | return result; |
| 45 | } |
| 46 | |
| 47 | PlayerUniverseMap::PlayerUniverseMap(Json const& json) { |
| 48 | if (auto maps = json.optObject()) { |
no test coverage detected