Discounts.fromJson constructor
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'];
}