title: Type Mismatch during json parsing in flutter
body: <p>I have a json which is returning as a List. I am trying to parse it but I am getting an error named </p>
  
  <p>_InternalLinkedHashMap' is not a subtype of type 'List'
  Here is my code -                                                                                                     </p>
  
  <pre><code> List data = json.decode(response.body) as List; 
      var newsPageViewResult = data.map((i) =&gt; new NewsList.fromJson(i)).toList();
  </code></pre>
  
  <p>and my model class for the json  </p>
  
  <pre><code>    class NewsList {
    final List&lt;News&gt; news;
  
    NewsList({
      this.news,
    });
  
    factory NewsList.fromJson(List&lt;dynamic&gt; parsedJson) {
  
      List&lt;News&gt; news = new List&lt;News&gt;();
      news = parsedJson.map((i)=&gt;News.fromJson(i)).toList();
  
      return new NewsList(
          news: news
      );
    }
  }
  
  class News{
    final String status;
    final String type;
  
    News({
      this.status,
      this.type
    }) ;
  
    factory News.fromJson(Map&lt;String, dynamic&gt; json){
      return new News(
  
        status: json['status'],
        type: json['type'],
      );
    }}  
  
                                                                                                                                                                  also this is how json is returning                                                                                                                    
  </code></pre>
  
  <p>[
    {
      "id": 10159,
      "date": "2018-07-23T11:34:22",
      "date_gmt": "2018-07-23T11:34:22",
      "guid": {
        "rendered": "<a href="http://the2is.com/?p=10159" rel="nofollow noreferrer">http://the2is.com/?p=10159</a>"
      },
      "modified": "2018-07-23T11:35:13",
      "modified_gmt": "2018-07-23T11:35:13",
      "slug": "only-25-rupees-will-be-removed-in-children-lack-of-blood",
      "status": "publish",
      "type": "post",....]</p>
  
  <p>I have explicitly declared what type of data is passed according to Dart 2.0 documentation and still error is there.</p>