Product.fromJson constructor

Product.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Product.fromJson(Map<String, dynamic> json){
  productSKU= json['productSKU'];
  price=json['price'];
  quantity=json['quantity'];
  status=json['status'];
  promoId=json['promoId'];
  variation = json['variation'];
  productName = json['productName'];
}