2#include <nlohmann/json.hpp>
3#include <nlohmann/json_fwd.hpp>
7 template <
typename Option>
8 void to_json(nlohmann::ordered_json& json_obj,
const Option& option)
11 nlohmann::ordered_json{ {
"enable", option.enable }, {
"read", option.read }, {
"write", option.write } };
14 template <
typename Option>
17 json_obj.at(
"enable").get_to(option.enable);
18 json_obj.at(
"read").get_to(option.read);
19 json_obj.at(
"write").get_to(option.write);
Simulation of NeuLAND Bar/Paddle.
void from_json(const nlohmann::ordered_json &json_obj, GeneratorFactory::Options &options)
void to_json(nlohmann::ordered_json &json_obj, const GeneratorFactory::Options &options)