Item.fromMap constructor
Implementation
factory Item.fromMap(Map<String, dynamic> map) {
return Item(
id: map['id'],
description: map['description'],
priceCents: map['price_cents'],
quantity: map['quantity'],
createdAt: map['created_at'],
updatedAt: map['updated_at'],
price: map['price'],
destroy: map['_destroy'],
);
}