title: how to get list from the json object using asyncsnapshot correctly in flutter?
body: <p>I'm getting the json api from openweathermap.org and using the FutureBuilder to uodate the text widget.</p>
  
  <p>this is the json structure: </p>
  
  <pre><code>{
  "message": "accurate",
  "cod": "200",
  "count": 1,
  "list": [
  {
  "id": 113646,
  "name": "Tabriz",
  "coord": {
  "lat": 38.0758,
  "lon": 46.2892
  },
  "main": {
  "temp": 29,
  "pressure": 1020,
  "humidity": 20,
  "temp_min": 29,
  "temp_max": 29
  },
  "dt": 1566716943,
  "wind": {
  "speed": 2.1,
  "deg": 80
  },
  "sys": {
  "country": "IR"
  },
  "rain": null,
  "snow": null,
  "clouds": {
  "all": 20
  },
  "weather": [
  {
  "id": 801,
  "main": "Clouds",
  "description": "few clouds",
  "icon": "02d"
  }
  ]
  }
  ]
  }
  </code></pre>
  
  <p>so what I did is:</p>
  
  <pre><code>    Future&lt;Map&gt; getJson(String appId, String city) async {
        String url =
            "https://api.openweathermap.org/data/2.5/find?q=$city&amp;units=metric&amp;appid=${util.appId}";
        http.Response response = await http.get(url);
        return json.decode(response.body);
      }
  
      Widget updateTemp(String city){
        return new FutureBuilder(
            future: getJson(util.appId, city),
            builder:(BuildContext context , AsyncSnapshot&lt;Map&gt; snapshot){
              if(snapshot.hasData){
  
                Map content = snapshot.data;
                List cont = content['list'];
  
                return new Container(
                  child: Column(
                    children: &lt;Widget&gt;[
                      new ListTile(
                        title: new Text("${cont['main']['temp']}",
                        style: tempStyle(),),
                      ),
                    ],
                  ),
                );
              }else{
                return new Container();
              }
            }
        );
      }
  </code></pre>
  
  <p>why am I getting the error in ['main'] which says the argument type string cant be assigned to parameter type int ?
  I think the problem is within the </p>
  
  <pre><code>List cont = content['list'];
  </code></pre>
  
  <p>Am I getting the ['list'] correctly?</p>