fromJson static method

RouteQueue? fromJson(
  1. Object? data,
  2. NRouterDelegate delegate
)

Implementation

static RouteQueue? fromJson(Object? data, NRouterDelegate delegate) {
  switch (data) {
    case {'list': List listMap}:
      final routeQueue = RouteQueue(delegate);
      final list = fromListMap(listMap, routeQueue);
      routeQueue.initWithValue(list);
      return routeQueue;
  }

  return null;
}