#pragma once // Spec: models.md BookmarkItem. id = targetType + ":" + targetId. #include #include "core/Json.hpp" namespace dp { struct BookmarkItem { std::string targetType; std::string targetId; std::string typeLabel; std::string title; std::string url; static BookmarkItem fromJson(const Json& j); std::string id() const { return targetType + ":" + targetId; } }; } // namespace dp