Files
Card-Collection-Manager-3/core/src/domain/Set.cpp
T
Sebastian Dine 55ace147bc major: initial release
* 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>
2026-05-09 11:05:47 +02:00

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