content: class ProductList {
    List<Products>? products;
    int? total;
    int? skip;
    int? limit;
  
    ProductList({this.products, this.total, this.skip, this.limit});
  
    ProductList.fromJson(Map<String, dynamic> json) {
      if (json['products'] != null) {
        products = <Products>[];
        json['products'].forEach((v) {
          products!.add(Products.fromJson(v));
        });
      }
      total = json['total'];
      skip = json['skip'];
      limit = json['limit'];
    }
  
    Map<String, dynamic> toJson() {
      final Map<String, dynamic> data = <String, dynamic>{};
      if (products != null) {
        data['products'] = products!.map((v) => v.toJson()).toList();
      }
      data['total'] = total;
      data['skip'] = skip;
      data['limit'] = limit;
      return data;
    }
  }
  
  class Products {
    dynamic id;
    dynamic title;
    dynamic description;
    dynamic price;
    dynamic discountPercentage;
    dynamic rating;
    dynamic stock;
    dynamic brand;
    dynamic category;
    dynamic thumbnail;
    List<String>? images;
  
    Products(
        {this.id,
        this.title,
        this.description,
        this.price,
        this.discountPercentage,
        this.rating,
        this.stock,
        this.brand,
        this.category,
        this.thumbnail,
        this.images});
  
    Products.fromJson(Map<String, dynamic> json) {
      id = json['id'];
      title = json['title'];
      description = json['description'];
      price = json['price'];
      discountPercentage = json['discountPercentage'];
      rating = json['rating'];
      stock = json['stock'];
      brand = json['brand'];
      category = json['category'];
      thumbnail = json['thumbnail'];
      images = json['images'].cast<String>();
    }
  
    Map<String, dynamic> toJson() {
      final Map<String, dynamic> data = <String, dynamic>{};
      data['id'] = id;
      data['title'] = title;
      data['description'] = description;
      data['price'] = price;
      data['discountPercentage'] = discountPercentage;
      data['rating'] = rating;
      data['stock'] = stock;
      data['brand'] = brand;
      data['category'] = category;
      data['thumbnail'] = thumbnail;
      data['images'] = images;
      return data;
    }
  }
  