| 22 | } |
| 23 | |
| 24 | Json::Value Enum::toJson() const { |
| 25 | Json::Value Json; |
| 26 | |
| 27 | Json["Name"] = Name; |
| 28 | Json::Value EnumeratorsJson = Json::Value(Json::arrayValue); |
| 29 | for (auto Enumerator : Enumerators) |
| 30 | EnumeratorsJson.append(Enumerator.toJson()); |
| 31 | Json["Enumerators"] = EnumeratorsJson; |
| 32 | |
| 33 | return Json; |
| 34 | } |
| 35 | |
| 36 | bool Enum::fromJson(Json::Value Json) { |
| 37 | try { |