title: The argument type 'List<dynamic>' can't be assigned to the parameter type 'Iterable<Product>'
body: <p><strong>This is my controller class as I am using GetX controller with null safety</strong></p>
  <pre><code>    // ignore_for_file: file_names
      import 'package:get/state_manager.dart';
      import 'package:today/models/product.dart';
  
      import 'package:today/services/api.dart';
  
      class ProductController extends GetxController {
        var isLoading = true.obs;
        var productList = &lt;Product&gt;[].obs;
  
        @override
        void onInit() {
          fetchProducts();
          super.onInit();
        }
  
        void fetchProducts() async {
          try {
            isLoading(true);
            var products = await RemoteServices.fetchProducts();
            if (products != null) {
              productList.value = products;
            }
          } finally {
            isLoading(false);
          }
        }
      }
  </code></pre>
  <p><strong>This is my model clas created using quicktype.io</strong></p>
  <pre><code>    // To parse this JSON data, do
      //
      //     final product = productFromJson(jsonString);
  
      import 'dart:convert';
  
      List&lt;Product&gt; productFromJson(String str) =&gt;
          List&lt;Product&gt;.from(json.decode(str).map((x) =&gt; Product.fromJson(x)));
  
      String productToJson(List&lt;Product&gt; data) =&gt;
          json.encode(List&lt;dynamic&gt;.from(data.map((x) =&gt; x.toJson())));
  
      class Product {
        Product({
          required this.id,
          required this.name,
          required this.details,
          required this.price,
          required this.color,
          required this.stock,
          required this.image,
        });
  
        int id;
        String name;
        String details;
        double price;
        String color;
        int stock;
        String image;
  
        factory Product.fromJson(Map&lt;String, dynamic&gt; json) =&gt; Product(
              id: json[&quot;id&quot;],
              name: json[&quot;name&quot;],
              details: json[&quot;details&quot;],
              price: json[&quot;price&quot;].toDouble(),
              color: json[&quot;color&quot;],
              stock: json[&quot;stock&quot;],
           image: json[&quot;image&quot;],
        );
  
        Map&lt;String, dynamic&gt; toJson() =&gt; {
              &quot;id&quot;: id,
              &quot;name&quot;: name,
              &quot;details&quot;: details,
              &quot;price&quot;: price,
              &quot;color&quot;: color,
              &quot;stock&quot;: stock,
              &quot;image&quot;: image,
            };
      }
  </code></pre>
  <p><strong>I don't know how to solve this issue, please help me!</strong>
  <strong>edit: this is my remoteservices class</strong></p>
  <pre><code>    // ignore: avoid_web_libraries_in_flutter
  
  // ignore_for_file: avoid_print
  
      import 'package:http/http.dart' as http;
  import 'package:today/models/product.dart';
  
      class RemoteServices {
        static var client = http.Client();
  
        static Future&lt;List?&gt; fetchProducts() async {
          try {
            String link = 
      &quot;https://devswagger.aquaticxpressshipping.com/api/Products&quot;;
            var url = Uri.parse(link);
            var response = await http.get(
              url,
              headers: {
                &quot;Content-Type&quot;: &quot;application/json&quot;,
                &quot;Authorization&quot;:
                    &quot;Bearer 
  `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6IjMyZTJmYTZmLTdlNTEtNGQ4ZC1iNTQ3LTA3YzE5ZGRmYWZiOCIsInJvbGUiOiJVc2VyIiwibmJmIjoxNjMyMTA5NzQ0LCJleHAiOjE2MzI3MTQ1NDQsImlhdCI6MTYzMjEwOTc0NH0.cTROYSpeQHY5wavW-SPbyuHODTzT3wN7oDapy73pkMk&quot;,
              },
            );
  
            if (response.statusCode == 200) {
              var jsonString = response.body;
              return productFromJson(jsonString);
            } else {
              //show error message
              return null;
            }
          } on Error catch (e) {
            print('General Error: $e');
          }
        }
      }
  </code></pre>