src/models/item.js
class Item {
constructor(_id, title, price, company, image, quantity, description, type
) {
this._id = _id;
this.title = title;
this.price = price;
this.company = company;
this.image = image;
this.quantity = quantity;
this.description = description;
this.type = type
}
}
export default Item;