Skip to content
Permalink
Browse files

not all json endpoint returns a Map, sometimes a List

  • Loading branch information...
mathieujobin committed Sep 14, 2019
1 parent 2931540 commit 0e8911b930faaaa35a279c50439960fe366d0c1e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/monalisa_client.dart
@@ -54,7 +54,7 @@ class MonalisaClient {
});
}

Future<Map> three_legged_get(String url) {
Future<dynamic> three_legged_get(String url) {
return httpClient.get(local_config["base_url"]+url, headers: three_legged_auth_headers).then((res) {
if (res.statusCode == 200) {
return json.decode(res.body);

0 comments on commit 0e8911b

Please sign in to comment.
You can’t perform that action at this time.