title: Flutter Json Call
body: <p>My everythink ready</p>
  <pre><code>  if (response.statusCode == 200) {
      return (jsonDecode(response.body)).map((sendData){
        return Restaurant.fromJson(sendData);
      }).toList();
    } else {
      throw Exception('data error');
    }
  
    
  </code></pre>
  <p>my json</p>
  <p>{
  &quot;id&quot;: 2,
  &quot;restaurant_name&quot;: &quot;Eethuis Orient Dev&quot;,
  &quot;restaurant_slug&quot;: &quot;eethuis-orient-heusden&quot;,.............
  ....
  }</p>
  <p>I think problem is my return use</p>
  <pre><code>return (jsonDecode(response.body) as List).map((sendData){
        return Restaurant.fromJson(sendData);
      
  </code></pre>
  <p>thank you</p>