mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-01 18:16:14 +02:00
18 lines
414 B
C++
18 lines
414 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include <nlohmann/json.hpp>
|
|
#include "config.hh"
|
|
#include "json-utils.hh"
|
|
|
|
namespace nix {
|
|
template<typename T>
|
|
std::map<std::string, nlohmann::json> BaseSetting<T>::toJSONObject() const
|
|
{
|
|
auto obj = AbstractSetting::toJSONObject();
|
|
obj.emplace("value", value);
|
|
obj.emplace("defaultValue", defaultValue);
|
|
obj.emplace("documentDefault", documentDefault);
|
|
return obj;
|
|
}
|
|
}
|