mirrored_repositories/shopping/lib
class ProductListItemModel {
  String id;
  String title;
  String brand;
  String tag;
  double price;
  String image;

  ProductListItemModel(
      {this.id, this.title, this.brand, this.tag, this.price, this.image});

  ProductListItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    brand = json['brand'];
    tag = json['tag'];
    price = json['price'];
    image = json['image'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['brand'] = this.brand;
    data['tag'] = this.tag;
    data['price'] = this.price;
    data['image'] = this.image;
    return data;
  }
}
