WishlistPrice.fromJson constructor

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

Implementation

WishlistPrice.fromJson(Map<String, dynamic> json) {
  sellingPrice =
      json['sellingPrice'] != null ? json['sellingPrice'].toDouble() : 0.0;
  mrp = json['mrp'] != null ? json['mrp'].toDouble() : 0.0;
  discount = json['discount'] != null ? json['discount'].toDouble() : 0.0;
  minPrice = json['minPrice'] != null ? json['minPrice'].toDouble() : 0.0;
  maxPrice = json['maxPrice'] != null ? json['maxPrice'].toDouble() : 0.0;
  type = json['type'];
  isSamePrice = json['isSamePrice'];
}