#include "model/NotificationCounts.hpp" #include "core/JsonDecode.hpp" namespace dp { NotificationCounts NotificationCounts::fromJson(const Json& j) { using D = JsonDecode; return NotificationCounts{D::req(j, "notifications"), D::req(j, "messages")}; } } // namespace dp