title: How to resolve dart error --Exception has occurred. _TypeError (type 'List<dynamic>' is not a subtype of type 'String')
body: <p>I am getting the following error in Dart..</p>
  
  <p>Exception has occurred.
  _TypeError (type 'List' is not a subtype of type 'String')</p>
  
  <p>This is my code,,</p>
  
  <pre><code>class Hits {
   String incentives;
   Hits({
     this.incentives,
   });
  
  Hits.fromJson(Map&lt;String, dynamic&gt; json) {
     incentives = json['incentives'];
  }
  
  }
  </code></pre>
  
  <p>The value in the JSON has 1 of the following value</p>
  
  <pre><code>0:"incentives" -&gt; List (1 item)
     key:"incentives"
     value:List (1 item)
     [0]:""
     String:""
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>0:"incentives" -&gt; null
  key:"incentives"
  value:null
  </code></pre>
  
  <p>Can you give me a hit on how to resolve this error..</p>
  
  <p>Thanks</p>