title: Error in searching data using listview in flutter
body: <p>I've tried this code for searching jobs in listview but the data is not shown in listview. I think JSON is not parsing properly for Jobs data.</p>
  <p>Here is the code of the model:</p>
  <pre><code>import 'package:flutter/material.dart';
  
  class JobItem {
    final String title;
    final String description;
  
    JobItem(
        { 
        required this.title,
          required this.description,
          });
  
    factory JobItem.fromJson(Map&lt;String, dynamic&gt; json) {
      return JobItem(
        title: json['title'] as String,
        description: json['description'] as String,
      );
    }
  }
  </code></pre>
  <p>Here I've written code for the main file to search data from the listview.</p>
  <pre><code> List&lt;JobItem&gt; users = [];
    List&lt;JobItem&gt; filteredUsers = [];
    static String url = 'https://hospitality92.com/api/jobsbycategory/All';
  
    static Future&lt;List&lt;JobItem&gt;&gt; getJobsData() async {
      try {
        final response = await http.get(Uri.parse(url));
        if (response.statusCode == 200) {
          List&lt;JobItem&gt; list = parseAgents(response.body);
  
          return list;
        } else {
          throw Exception('Error');
        }
      } catch (e) {
        throw Exception(e.toString());
      }
    }
    static List&lt;JobItem&gt; parseAgents(String responseBody) {
      final parsed = json.decode(responseBody).cast&lt;Map&lt;String, dynamic&gt;&gt;();
      return parsed.map&lt;JobItem&gt;((json) =&gt; JobItem.fromJson(json)).toList();
    }
  
  
    @override
    void initState() {
      super.initState();
      getJobsData().then((usersFromServer) {
        setState(() {
          users = usersFromServer;
          filteredUsers = users;
        });
      });
    }```
  
  
   
  </code></pre>