Skip to content
Repos

DevPlaceApp

C++ 280 B12 lines Opens in site

Directory Raw Download

#include "model/NotificationOpen.hpp"

#include "core/JsonDecode.hpp"

namespace dp {

NotificationOpen NotificationOpen::fromJson(const Json& j) {
  using D = JsonDecode;
  return NotificationOpen{D::req<bool>(j, "ok"), D::req<std::string>(j, "redirect")};
}

}  // namespace dp
37.9ms