| 113 | } |
| 114 | |
| 115 | nlohmann::json graphStructToJson(const GraphStruct& struc) { |
| 116 | nlohmann::json ret = nlohmann::json::array(); |
| 117 | |
| 118 | for (const auto& elem : struc.types()) { |
| 119 | ret.push_back({{elem.name, elem.type.qualifiedName()}}); |
| 120 | } |
| 121 | |
| 122 | return ret; |
| 123 | } |
| 124 | |
| 125 | } // namespace chi |
no test coverage detected