title: Flutter convert Map to List for JSON
body: <p>I am working on a project in Flutter. 
  And I have the problem, that I can´t get all Values from a Map into a List. Is that even possible?</p>
  
  <p>The API I have looks like that:</p>
  
  <pre><code>{
    {
     "adult":false,
     "backdrop_path":"/w41zFKYTsq4wf5QnQJWMXuzWl2F.jpg",
     "title":"Harry Potter"
      ...
    }
  }
  </code></pre>
  
  <p>And my code looks like this:</p>
  
  <pre class="lang-dart prettyprint-override"><code>Map data;
  List userData;
  
  Future&lt;List&lt;Result&gt;&gt; _getData(UrlToUse) async {
      var response = await http.get(_baseurl + UrlToUse + 'api_key=' + _key + '&amp;language=' + _lang);
      data = json.decode(response.body);
  
      userData = data[];  //&lt;--- Doesn´t work. I need this line
  
      print(userData);
      List&lt;Result&gt; realdata = [];
      realdata.clear();
      for (var e in userData) {
        Result result = Result(
            e['id'],
            e['title'],
            e['overview'],
            e['poster_path'],
            e['backdrop_path'],
            e['release_date'],
            e['datvote_average']);
        realdata.add(result);
      }
      return realdata;
  }
  </code></pre>
  
  <p>If you know a way to change this line, let me know ;D</p>