#pragma once // Spec: models.md ReportReason. fromJson reads one item; listFromJson reads {"reasons":[{key,label},...]}. #include #include #include "core/Json.hpp" namespace dp { struct ReportReason { std::string key; std::string label; static ReportReason fromJson(const Json& j); static std::vector listFromJson(const Json& j); std::string id() const { return key; } }; } // namespace dp