ServerParentRoute.fromMeta constructor
ServerParentRoute.fromMeta(
- MetaRoute parentRoute,
- int index
Implementation
factory ServerParentRoute.fromMeta(MetaRoute parentRoute, int index) {
return ServerParentRoute(
routes: parentRoute.methods.map(ServerChildRoute.fromMeta).toList(),
params: parentRoute.params.map(ServerParam.fromMeta).toList(),
className: parentRoute.className,
importPath: ServerImports([parentRoute.element.library.uri.toString()]),
routePath: parentRoute.path,
annotations: ServerRouteAnnotations.fromParent(parentRoute),
index: index,
type: parentRoute.type,
);
}