title: Flutter audio_service add item from json
body: <p>audio_service new update removed fromjson in model class .. how can i add media item from json? My json look like this</p>
  <pre><code> [
  {
      &quot;id&quot;: &quot;http://581.22.00.66:8500/1?type=http&quot;,
      &quot;title&quot;: &quot;test&quot;,
      &quot;artist&quot;: &quot;test&quot;,
      &quot;album&quot;: &quot;test&quot;,
      &quot;artUri&quot;: &quot;test.png&quot;,
      &quot;genre&quot;: &quot;8535&quot;,
      &quot;displayDescription&quot;: &quot;23&quot;
  },
  {
      &quot;id&quot;: &quot;http://581.22.00.66:6600/2?type=http&quot;,
      &quot;title&quot;: &quot;test2&quot;,
      &quot;artist&quot;: &quot;test2&quot;,
      &quot;album&quot;: &quot;test2&quot;,
      &quot;artUri&quot;: &quot;test2.png&quot;,
      &quot;genre&quot;: &quot;1498&quot;,
      &quot;displayDescription&quot;: &quot;23&quot;
  },
  </code></pre>
  <p>we using dio for json.</p>
  <pre><code>List&lt;MediaItem&gt; _queue = [];
  void getdata() async {
    final response = await Dio().get(Constants.url+'post.php', queryParameters: {
    });
    for (int i = 0; i &lt; response.data.length; i++) {
      _queue.add(response.data[i]);
    }
  }
  </code></pre>
  <p>Error:</p>
  <pre><code> Unhandled Exception: type '_InternalLinkedHashMap&lt;String, dynamic&gt;' is not a subtype of type 'MediaItem'
  </code></pre>