We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ea3b36 + 2164983 commit af4420fCopy full SHA for af4420f
using_http_get/lib/main.dart
@@ -34,7 +34,7 @@ class MyGetHttpDataState extends State<MyGetHttpData> {
34
// To modify the state of the app, use this method
35
setState(() {
36
// Get the JSON data
37
- var dataConvertedToJSON = JSON.decode(response.body);
+ var dataConvertedToJSON = json.decode(response.body);
38
// Extract the required part and assign it to the global variable named data
39
data = dataConvertedToJSON['results'];
40
});
0 commit comments