2020-09-16 09:06:35 +02:00
|
|
|
#pragma once
|
2023-04-01 05:18:41 +02:00
|
|
|
///@file
|
2020-09-16 09:06:35 +02:00
|
|
|
|
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
#include "config.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
template<typename T>
|
|
|
|
std::map<std::string, nlohmann::json> BaseSetting<T>::toJSONObject()
|
|
|
|
{
|
|
|
|
auto obj = AbstractSetting::toJSONObject();
|
|
|
|
obj.emplace("value", value);
|
|
|
|
obj.emplace("defaultValue", defaultValue);
|
2021-12-01 16:08:23 +01:00
|
|
|
obj.emplace("documentDefault", documentDefault);
|
2020-09-16 09:06:35 +02:00
|
|
|
return obj;
|
|
|
|
}
|
|
|
|
}
|