title: How to save your api response in as a list in flutter
body: <p>I am calling an api whose response is a list of items and I want to store them to response class. My code is:</p>
  <p>await
  get(</p>
  <pre><code>  Uri.parse(
        &quot;https://**********/api/Payment/GetDeliveryList?statusid=$statuscode&amp;ShipperId=$shipperid&amp;Rowsperpage=$rows&amp;Page=$page&quot;),
    headers: {
      &quot;Content-Type&quot;: &quot;application/json&quot;,
      &quot;Authorization&quot;: &quot;Bearer $tokens&quot;,
    },
  ).then((response) {
    var data = json.decode(response.body);
    print(data);
  </code></pre>