title: type 'List<dynamic>' is not a subtype of type 'List<Todo>'
body: <p>I use dio with getx to get list of todo data but I see this message</p>
  <blockquote>
  <p><code>type 'List&lt;dynamic&gt;' is not a subtype of type 'List&lt;Todo&gt;'</code></p>
  </blockquote>
  <p>when i go reach this line</p>
  <p>List responseBode =  rsp.data['data'];</p>
  <p>what is happen in this line and how to fix it , thanks</p>
  <p>service class updated with converting to the list but still the same issue</p>
  <p>1- the first class for controller
  2- the second for the service class</p>
  <pre><code>class TodoListController extends GetxController {
    //var lstTask = List&lt;dynamic&gt;.empty(growable: true).obs;
    var items = List&lt;Todo&gt;.empty(growable: true).obs;
  
    var page = 1.obs;
    var totalRows = 10.obs;
    var isDataProcessing = false.obs;
    var isMoreDataAvailable = true.obs;
    var isSearching = false.obs;
    var isLoading = false.obs;
    var isCompleted = true.obs;
  
    var errorMsg = ''.obs ;
    var http = new HttpUtils();
  
    // For Pagination
    ScrollController scrollController = ScrollController();
  
    @override
    onInit() {
      super.onInit();
      // Fetch Data
      getTodo(page);
  
    }
  
    // Fetch Data
     getTodo(var page) {
      try {
        isMoreDataAvailable(false);
        isDataProcessing(true);
        AppServices().getTodo(page).then((resp) {
          isDataProcessing(false);
          resp.forEach(( dynamic json) {
            items.add(Todo.fromJson(json));
          });
          print(resp);
          //items.addAll(resp);
        }, onError: (err) {
          isDataProcessing(false);
          AppServices().showSnackBar(&quot;Error&quot;, err.toString(), Colors.red);
        });
      } catch (exception) {
        isDataProcessing(false);
        AppServices().showSnackBar(&quot;Exception&quot;, exception.toString(), Colors.red);
      }
    }
  
    // Get More data
     getMoreTodo(var page) {
      try {
          AppServices().getTodo(page).then((resp) {
          if (resp.length &gt; 0) {
            isMoreDataAvailable(true);
          } else {
            isMoreDataAvailable(false);
            AppServices().showSnackBar(&quot;Message&quot;, &quot;No more items&quot;, Colors.lightBlueAccent);
          }
          items.addAll(resp);
        }, onError: (err) {
          isMoreDataAvailable(false);
          AppServices().showSnackBar(&quot;Error&quot;, err.toString(), Colors.red);
        });
      } catch (exception) {
        isMoreDataAvailable(false);
        AppServices().showSnackBar(&quot;Exception&quot;, exception.toString(), Colors.red);
      }
    }
  }
  
     
  </code></pre>
  <p>class AppServices extends GetConnect {
  var http = new HttpUtils();</p>
  <pre><code>          // Fetch Data
    Future&lt;List&lt;Todo&gt;&gt; getTodo(var id) async {
      try {
        Response rsp =  await http.get(AppUrl.get_todo, {'current_page': id});
        print(rsp.data['data']);
        if (rsp.data[&quot;response_status&quot;] != '400') {
          List&lt;Todo&gt; responseBode = rsp.data['data'].map ((todo) =&gt; Todo.fromJson(todo)).toList();
          return responseBode;
        } else {
          return rsp.data[&quot;response_message&quot;] ;
        }
      }catch(exception)
      {
        return Future.error(exception.toString());
      }
    }
  }
  </code></pre>