title: I got this error while retrieving data from the api?
body: <p><a href="https://i.stack.imgur.com/OZp92.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OZp92.png" alt="This is the JSON data, i want to retrive "></a> </p>
  
  <p>what is the error in this code? In console, I got error like this </p>
  
  <blockquote>
    <p>[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception:
    type '_InternalLinkedHashMap' is not a subtype of
    type 'Iterable</p>
  </blockquote>
  
  <pre><code>class _MytimeoffState extends State&lt;Mytimeoff&gt; {
  
    List&lt;Map&gt; list = [];
  
    void getList() async {
      var data = await http
          .get('https://my-json-server.typicode.com/darshanaAlex/db2/time_off');
      var jsonData = json.decode(data.body);
  
      setState(() {
        for (Map js in jsonData) {
          list.add(js);
        }
      });
      print(jsonData);
    }
  
    @override
    void initState() {
      super.initState();
      getList();
    }
  
  
    @override
    Widget build(BuildContext context) {
      return Scaffold();
  }
  }
  </code></pre>