14 using json::utility::jsonObject;
18 const auto& children = description.getArray(
"children");
21 data.reserve(children.size());
23 for (
const auto& i : children)
25 const auto& [componentName, tem] = get<jsonObject>(i.data.front().second).data.front();
27 const auto& child = get<jsonObject>(tem);
29 auto& radioButtonData =
data.emplace_back();
31 radioButtonData.functionName = child.getString(
"functionName");
33 radioButtonData.moduleName = child.getString(
"moduleName");
39 radioButtonData.x =
static_cast<int>(child.getInt(
"desiredX"));
41 radioButtonData.y =
static_cast<int>(child.getInt(
"desiredY"));
43 radioButtonData.width =
static_cast<uint16_t
>(child.getUnsignedInt(
"desiredWidth"));
45 radioButtonData.height =
static_cast<uint16_t
>(child.getUnsignedInt(
"desiredHeight"));