mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 17:46:15 +02:00
16 lines
321 B
C++
16 lines
321 B
C++
|
#pragma once
|
||
|
|
||
|
#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);
|
||
|
return obj;
|
||
|
}
|
||
|
}
|