* Converts the route tree into a serialized format representation. * This method converts the route tree into an array of metadata objects that describe the structure of the tree. * The array represents the routes in a nested manner where each entry includes the route and its associated metada
()
| 159 | * Each object includes the `route` and associated metadata of a route. |
| 160 | */ |
| 161 | toObject(): SerializableRouteTreeNode { |
| 162 | return Array.from(this.traverse()); |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * Constructs a `RouteTree` from an object representation. |
no test coverage detected