| 26 | |
| 27 | template <typename T> |
| 28 | Bookmark<T> Bookmark<T>::fromJson(Json const& json) { |
| 29 | Bookmark<T> bookmark; |
| 30 | bookmark.target = jsonToBookmarkTarget<T>(json.get("target")); |
| 31 | bookmark.targetName = json.getString("targetName"); |
| 32 | bookmark.bookmarkName = json.getString("bookmarkName"); |
| 33 | bookmark.icon = json.getString("icon"); |
| 34 | return bookmark; |
| 35 | } |
| 36 | |
| 37 | template <typename T> |
| 38 | Json Bookmark<T>::toJson() const { |
nothing calls this directly
no test coverage detected