43 nlohmann::json rel = r;
44 rel[
"source"] = std::to_string(f.
id().
value());
45 parent[
"relationships"].push_back(std::move(rel));
52 if (
config().generate_packages && !
config().generate_packages()) {
64 j[
"id"] = std::to_string(f.
id().
value());
70 j[
"display_name"] = std::move(display_name);
81 parent[
"elements"].push_back(std::move(j));
87 j[
"file_kind"] = to_string(f.
type());
92 parent[
"elements"].push_back(std::move(j));
100 j[
"id"] = std::to_string(f.
id().
value());
106 j[
"display_name"] = std::move(display_name);
117 j[
"file_kind"] = to_string(f.
type());
122 parent[
"elements"].push_back(std::move(j));
128 parent[
"elements"] = std::vector<nlohmann::json>{};
129 parent[
"relationships"] = std::vector<nlohmann::json>{};