MCPcopy Create free account
hub / github.com/benkuper/Chataigne / getJSONData

Method getJSONData

Source/Module/Routing/ModuleRouterValue.cpp:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82var ModuleRouterValue::getJSONData(bool includeNonOverriden)
83{
84 var data = BaseItem::getJSONData(includeNonOverriden);
85
86 data.getDynamicObject()->setProperty("customName", niceName);
87 if (sourceValue != nullptr) data.getDynamicObject()->setProperty("niceName", sourceValue->niceName);
88
89 if (routeParams != nullptr) data.getDynamicObject()->setProperty("routeParams", routeParams->getJSONData());
90 return data;
91}
92
93void ModuleRouterValue::loadJSONDataInternal(var data)
94{

Callers 1

setSourceAndOutModuleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected