title: How can we get specific data from JSON object in flutter?
body: <p>I'm trying to get the user id from the following JSON response:</p>
  <pre><code>    &quot;status&quot;: &quot;200&quot;,
      &quot;msg&quot;: &quot;Login Success !!&quot;,
      &quot;userdata&quot;: {
          &quot;id&quot;: 9,
          &quot;name&quot;: &quot;Zulqarnain&quot;,
          &quot;gender&quot;: &quot;male&quot;,
          &quot;dob&quot;: &quot;1999-10-10&quot;,
          &quot;email&quot;: &quot;zulqarnain@gmail.com&quot;,
          
      }
  }
  </code></pre>
  <p>I'll try to get it by writing the following code in flutter:</p>
  <pre><code>Map&lt;String, dynamic&gt; map = json.decode(response.body);
     List&lt;dynamic&gt; data = map[&quot;userdata&quot;];
     print(data[0][&quot;id&quot;]);
  </code></pre>
  <p>but it gives me the error <strong>Unhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'List'</strong>, how can I solve this issue.</p>