diff --git a/using_http_get/lib/main.dart b/using_http_get/lib/main.dart index 55711da..eaacee1 100644 --- a/using_http_get/lib/main.dart +++ b/using_http_get/lib/main.dart @@ -34,7 +34,7 @@ class MyGetHttpDataState extends State { // To modify the state of the app, use this method setState(() { // Get the JSON data - var dataConvertedToJSON = JSON.decode(response.body); + var dataConvertedToJSON = json.decode(response.body); // Extract the required part and assign it to the global variable named data data = dataConvertedToJSON['results']; });