I am trying to get the JSON response from the server and output it to the console.
Future login() async { var response = await http.get(
You have to convert the runtimeType of data from _InternalLinkedHashMap to an actual List.
runtimeType
data
_InternalLinkedHashMap
List
One way is to use the List.from.
List.from
final _data = List.from( data.map( (dynamic item) => item, ), );