summaryrefslogtreecommitdiff
path: root/lib/services/storegear_api_service.dart
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-11-08 19:56:21 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-11-08 19:56:21 +0100
commit8c4abd2b2705589fe668be52614979a12ff04869 (patch)
tree384d17ea2659cf03d01b1503f485286981d9eb56 /lib/services/storegear_api_service.dart
parenteed27fa5568e507c255a524185356786c877b2b8 (diff)
work
Diffstat (limited to 'lib/services/storegear_api_service.dart')
-rw-r--r--lib/services/storegear_api_service.dart3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/services/storegear_api_service.dart b/lib/services/storegear_api_service.dart
index 109c17b..b26f77b 100644
--- a/lib/services/storegear_api_service.dart
+++ b/lib/services/storegear_api_service.dart
@@ -110,6 +110,7 @@ class StoregearApiService extends IStoregearApiService {
}
}
+ @override
Future<DHLRoute.Route?> getRoute(String tripkey) async {
//return MockRouteProviderService().getRoute(int.parse(tripkey));
@@ -126,7 +127,7 @@ class StoregearApiService extends IStoregearApiService {
if (content["message"] != null) {
return null;
}
- return DHLRoute.Route.fromJson(content);
+ return RouteInfo.fromJson(content).route;
} else {
// If the server did not return a 200 OK response,
// then throw an exception.