title: Getting error type'_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Iterable<dynamic>' while fetching data from API in flutter
body: <p>I am new to flutter and I tried fetching data from API but I got the error</p>
  <pre><code>type'_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'Iterable&lt;dynamic&gt;'.
  </code></pre>
  <p>I am fetching news data from the API. I tried this for simple API and it worked and when I tried it for a complex API with some changes in the dart code I got this error.</p>
  <p>Sorry if I didn't explain correctly. I have pasted all the code that has been used for this API.</p>
  <p>I am not getting any solution. I am posting my code here.</p>
  <p><em><strong>post.dart</strong></em></p>
  <pre><code> class Post {
       List&lt;Articles&gt; articles;
  
       Post({this.articles});
  
       factory Post.fromJson(Map&lt;String, dynamic&gt; json) {
          return Post(
             articles: json['articles'].map((value) =&gt; new Articles.fromJson(value)).toList(),
       );
    }
  }
  </code></pre>
  <p><em><strong>article.dart</strong></em></p>
  <pre><code> class Articles{
       final String title;
       final String description;
       final String url;
       final String urlToImage;
       final String publishedAt;
       final String content;
  
        Articles({this.title, this.description, this.url, this.urlToImage, this.publishedAt, this.content});
  
        factory Articles.fromJson(Map&lt;String, dynamic&gt; json) {
            return Articles(
                title: json['title'],
                description: json['description'],
                url: json['url'],
                urlToImage: json['urlToImage'],
                publishedAt: json['publishedAt'],
                content: json['content'],
           );
         }
  
     }
  </code></pre>
  <p><em><strong>technology_post.dart</strong></em></p>
  <pre><code>   Future&lt;List&lt;Post&gt;&gt; fetchPost() async {
        final response = await http.get('https://newsapi.org/v2/top-headlines?sources=techcrunch&amp;apiKey=47ada2986be0434699996aaf4902169b');
        if (response.statusCode == 200) {
            var responseData = json.decode(response.body);
            List&lt;Post&gt; posts = [];
            for(var item in responseData){
               Post news = Post.fromJson(item);
               posts.add(news);
            }
         return posts;
        } else {
             throw Exception('Failed to load post');
        }
    }
  
    class Technology extends StatelessWidget{
        final Future&lt;List&lt;Post&gt;&gt; post;
        Technology({Key key, this.post}) : super (key : key);
  
        @override
        Widget build(BuildContext context) {
          return Scaffold(
            body: Center(
              child: FutureBuilder&lt;List&lt;Post&gt;&gt;(
                 future: post,
                 builder: (context, snapshot) {
                    if (snapshot.hasData) {
                        return ListView.builder(
                           itemBuilder: (BuildContext context, int index){
                           var dataStored = &quot;&quot;;
                           for(var i = 0; i &lt; 10; i++){
                               dataStored = snapshot.data.articles[i].title;
                               return ListTile(
                                  title: Text(dataStored),
                               );
                           }
                       }
                  );
          } else if (snapshot.hasError) {
            return Text(&quot;${snapshot.error}&quot;);
          }
           return CircularProgressIndicator();
          },
        ),
       ),
     );
    }
  }
  </code></pre>
  <p><em><strong>homescreen.dart</strong></em></p>
  <pre><code>  TabBarView(
                children: [
                  Technology(post: fetchPost()),
                  Text('General'),
                  Text('Cricket')
                ]
  </code></pre>
  <p>I have posted all the required code I hope. If you want to see the API you can see that <a href="https://newsapi.org/v2/top-headlines?sources=techcrunch&amp;apiKey=47ada2986be0434699996aaf4902169b" rel="nofollow noreferrer">here</a></p>
  <p>Sorry if I have pasted much code here.</p>
  <p>Why am I getting this error and how can I resolve this.</p>
  <p>Thanks in advance.</p>