diff options
Diffstat (limited to 'lib/services/storegear_api_service.dart')
| -rw-r--r-- | lib/services/storegear_api_service.dart | 3 |
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. |
