Files
cariflex/tools/EVerest-main/lib/everest/framework/lib/config_cache.cpp
Eric F d398a6ced2 Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1)
- OpenOCPP extracted (firmware OCPP 1.6J/2.0.1)
- ShapeShifter library installed (pip install -e)
- ShapeShifter specification extracted
- EVerest extracted

TODO updated with progress
2026-06-08 00:38:27 -04:00

15 lines
534 B
C++

// SPDX-License-Identifier: Apache-2.0
// Copyright Pionix GmbH and Contributors to EVerest
#include <utils/config_cache.hpp>
NLOHMANN_JSON_NAMESPACE_BEGIN
void adl_serializer<Everest::ConfigCache>::to_json(nlohmann::json& j, const Everest::ConfigCache& c) {
j = {{"provides_impl", c.provides_impl}, {"cmds", c.cmds}};
}
void adl_serializer<Everest::ConfigCache>::from_json(const nlohmann::json& j, Everest::ConfigCache& c) {
c.provides_impl = j.at("provides_impl");
c.cmds = j.at("cmds");
}
NLOHMANN_JSON_NAMESPACE_END