dvStudioRouteInfoJson function

Map<String, Object?> dvStudioRouteInfoJson(
  1. DVRouteInfo route
)

route as the project graph describes a route.

Implementation

Map<String, Object?> dvStudioRouteInfoJson(DVRouteInfo route) =>
    <String, Object?>{
      'path': route.path,
      'page': route.page,
      'source': route.directory,
      'kind': route.module == null ? 'page' : 'module page',
      'module': route.module,
    };