| 90 | } |
| 91 | |
| 92 | nlohmann::json toJSON() const override { |
| 93 | nlohmann::json ret = nlohmann::json::object(); |
| 94 | |
| 95 | auto& data = ret["data"]; |
| 96 | data = nlohmann::json::array(); |
| 97 | for (auto& pair : dataOutputs()) { |
| 98 | data.push_back({{pair.name, pair.type.qualifiedName()}}); |
| 99 | } |
| 100 | |
| 101 | auto& exec = ret["exec"]; |
| 102 | exec = nlohmann::json::array(); |
| 103 | for (auto& name : execOutputs()) { exec.push_back(name); } |
| 104 | |
| 105 | return ret; |
| 106 | } |
| 107 | }; |
| 108 | |
| 109 | struct ConstIntNodeType : NodeType { |
nothing calls this directly
no test coverage detected