mirrored_repositories/FLutter_Products_app_MVC/lib/service
class UpdateProductModel{
  int? quantity;
  int? id;
  String? location;
  double? price;
  String? descirption;
  String? category;

  UpdateProductModel(this.id,this.category,this.location,this.price,this.quantity,this.descirption);

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['id'] = id;
    data['quantity'] = quantity;
    data['location'] = location;
    data['price'] = price;
    data['descirption'] = descirption;
    data['category'] = category;
    return data;
  }
}