diff --git a/lib/src/interceptors/import.dart b/lib/src/interceptors/import.dart index 211dc96b..d3c78334 100644 --- a/lib/src/interceptors/import.dart +++ b/lib/src/interceptors/import.dart @@ -113,7 +113,7 @@ class DecodeJson extends Interceptor { const DecodeJson({this.encoding: UTF8}); - Future pre(HttpRequest request) async { + Future pre /*Map|List*/ (HttpRequest request) async { String data = await getStringFromBody(request, encoding); return JSON.decode(data); }