Discounts.fromJson constructor

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

Implementation

Discounts.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  name = json['name'];
  price = json['price'];
  totalPrice = json['totalPrice'];
  quantity = json['quantity'];
  glCode = json['glCode'];
  currency = json['currency'];
  percentage = json['percentage'];
  type = json['type'];
  cartLevelDiscount = json['cartLevelDiscount'];
}