ServerServer.fromMeta constructor

ServerServer.fromMeta(
  1. RevaliContext context,
  2. MetaServer server
)

Implementation

factory ServerServer.fromMeta(RevaliContext context, MetaServer server) {
  return ServerServer(
    context: context,
    routes: [
      for (final (index, route) in server.routes.indexed)
        ServerParentRoute.fromMeta(route, index),
    ],
    apps: server.apps.map(ServerApp.fromMeta).toList(),
    public: server.public.map(ServerPublic.fromMeta).toList(),
  );
}