Created
February 11, 2022 21:23
-
-
Save josephpalmezano/f1a4bf8899d95b3c8c7b6b7295f068b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'package:http/http.dart'; | |
Response response = await get('https://jsonplaceholder.typicode.com/todos/1'); | |
Map data = jsonDecode(response.body); | |
print(data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment