toPrimitives method

Map toPrimitives()

Implementation

Map toPrimitives() {
  final list = <Map<String, dynamic>>[];
  RouteQueueEntry? r = _root;

  while (r != null) {
    if (!r.isErrorEntry) list.add(r.toJson());
    assert(r._next != null || r == _current);
    r = r._next;
  }

  return {
    'list': list,
  };
}