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
5#include "lix/libutil/json.hh"
6
7namespace nix {
8template<typename T>
9std::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}