routeNodeToMap method
Implementation
Map<String, dynamic> routeNodeToMap(String path, RouteNode node) {
Map<String, dynamic> ret = {};
if (node.className != null) {
ret[path] = {'handler': node.className, 'params': {}};
}
for (var k in node.subNodes.keys) {
ret.addAll(routeNodeToMap('$path/$k', node.subNodes[k]!));
}
return ret;
}