From 8c4abd2b2705589fe668be52614979a12ff04869 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 8 Nov 2022 19:56:21 +0100 Subject: work --- lib/services/storegear_api_service.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/services/storegear_api_service.dart') 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 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. -- cgit v1.2.3-70-g09d2