From 6deb3b96de814034d2a59ec954d519346792d8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Mielcarek?= Date: Tue, 8 Nov 2022 07:31:47 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20r=C3=A9cup=C3=A9ration=20bons=20?= =?UTF-8?q?=C3=A9l=C3=A9ment=20dans=20json=20de=20l'API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/dafl_project_flutter/lib/api/api.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/dafl_project_flutter/lib/api/api.dart b/Sources/dafl_project_flutter/lib/api/api.dart index d7d824d..0adba79 100644 --- a/Sources/dafl_project_flutter/lib/api/api.dart +++ b/Sources/dafl_project_flutter/lib/api/api.dart @@ -107,6 +107,7 @@ class Api { 'Content-Type': 'application/json' }); // Implement treatment of data's - //print(response.body); + var decodedResponse = jsonDecode(utf8.decode(response.bodyBytes)) as Map; + print(decodedResponse['item']['href']); } }