| 15 | } |
| 16 | |
| 17 | void fromJson(json_t* rootJ) override { |
| 18 | Module::fromJson(rootJ); |
| 19 | // In <1.0, module used "text" property at root level. |
| 20 | json_t* textJ = json_object_get(rootJ, "text"); |
| 21 | if (textJ) |
| 22 | text = json_string_value(textJ); |
| 23 | dirty = true; |
| 24 | } |
| 25 | |
| 26 | json_t* dataToJson() override { |
| 27 | json_t* rootJ = json_object(); |
nothing calls this directly
no test coverage detected