route fixes
This commit is contained in:
@@ -1474,11 +1474,15 @@ class VeilidStateRoute {
|
||||
});
|
||||
|
||||
VeilidStateRoute.fromJson(Map<String, dynamic> json)
|
||||
: deadRoutes = json['dead_routes'],
|
||||
deadRemoteRoutes = json['dead_remote_routes'];
|
||||
: deadRoutes = List<String>.from(json['dead_routes'].map((j) => j)),
|
||||
deadRemoteRoutes =
|
||||
List<String>.from(json['dead_remote_routes'].map((j) => j));
|
||||
|
||||
Map<String, dynamic> get json {
|
||||
return {'dead_routes': deadRoutes, 'dead_remote_routes': deadRemoteRoutes};
|
||||
return {
|
||||
'dead_routes': deadRoutes.map((p) => p).toList(),
|
||||
'dead_remote_routes': deadRemoteRoutes.map((p) => p).toList()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -185,8 +185,9 @@ class VeilidJS implements Veilid {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<String> debug(String command) {
|
||||
return _wrapApiPromise(js_util.callMethod(wasm, "debug", [command]));
|
||||
Future<String> debug(String command) async {
|
||||
return jsonDecode(
|
||||
await _wrapApiPromise(js_util.callMethod(wasm, "debug", [command])));
|
||||
}
|
||||
|
||||
@override
|
||||
|
Reference in New Issue
Block a user