mirror of
https://github.com/sebastiandine/Card-Collection-Manager-3.git
synced 2026-08-28 17:01:02 +00:00
55ace147bc
* initial development * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * ci/cd * ci/cd * ci/cd * ci/cd * ci/cd * ci/cd * ci/cd * pokemon * pokemon * pokemon * pokemon * pokemon * pokemon * improvements * improvements * ci/cd * ci/cd * improvements * improvements * improvements * improvements * improvements * improvements * improvements * improvements * improvements --------- Co-authored-by: sdine <sdine@sdine.com>
20 lines
400 B
C++
20 lines
400 B
C++
#include "ccm/domain/Set.hpp"
|
|
|
|
namespace ccm {
|
|
|
|
void to_json(nlohmann::json& j, const Set& s) {
|
|
j = nlohmann::json{
|
|
{"id", s.id},
|
|
{"name", s.name},
|
|
{"releaseDate", s.releaseDate},
|
|
};
|
|
}
|
|
|
|
void from_json(const nlohmann::json& j, Set& s) {
|
|
j.at("id").get_to(s.id);
|
|
j.at("name").get_to(s.name);
|
|
j.at("releaseDate").get_to(s.releaseDate);
|
|
}
|
|
|
|
} // namespace ccm
|