Nix
2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
abstract-setting-to-json.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
lix/libutil/config.hh
"
5
#include "lix/libutil/json.hh"
6
7
namespace
nix {
8
template
<
typename
T>
9
std::map<std::string, JSON> BaseSetting<T>::toJSONObject()
const
10
{
11
auto
obj = AbstractSetting::toJSONObject();
12
obj.emplace(
"value"
, value);
13
obj.emplace(
"defaultValue"
, defaultValue);
14
obj.emplace(
"documentDefault"
, documentDefault);
15
return
obj;
16
}
17
}
config.hh
lix
libutil
abstract-setting-to-json.hh
Generated by
1.15.0