Skip to content

Instantly share code, notes, and snippets.

@josephpalmezano
Created February 11, 2022 21:23
Show Gist options
  • Save josephpalmezano/f1a4bf8899d95b3c8c7b6b7295f068b0 to your computer and use it in GitHub Desktop.
Save josephpalmezano/f1a4bf8899d95b3c8c7b6b7295f068b0 to your computer and use it in GitHub Desktop.
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