Skip to content

Commit 7edfd60

Browse files
committed
Add back toJson method
1 parent 9115264 commit 7edfd60

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/devtools_app/lib/src/shared/framework/routing.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class DevToolsRouteInformationParser
7676
params.removeWhere((key, value) => value == null);
7777
return RouteInformation(
7878
uri: Uri(path: path, queryParameters: params),
79-
state: configuration.state?.state,
79+
state: configuration.state,
8080
);
8181
}
8282

@@ -383,6 +383,9 @@ class DevToolsNavigationState {
383383

384384
@override
385385
String toString() => _state.toString();
386+
387+
// ignore: unused-code, implicit method used in JSON serialization.
388+
Map<String, Object?> toJson() => _state;
386389
}
387390

388391
/// Mixin that gives controllers the ability to respond to changes in router

0 commit comments

Comments
 (0)