MCPcopy Create free account
hub / github.com/Samsung/UTopia / toJson

Method toJson

lib/type/GlobalDef.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24Json::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
36bool Enum::fromJson(Json::Value Json) {
37 try {

Callers

nothing calls this directly

Calls 1

ValueClass · 0.50

Tested by

no test coverage detected