PriceDetails.fromJson constructor
PriceDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
PriceDetails.fromJson(Map<String, dynamic> json) {
sellingPrice = json['sellingPrice'].toDouble();
minPrice = json['minPrice'].toDouble();
maxPrice = json['maxPrice'].toDouble();
mrp = json['mrp'].toDouble();
type = json['type'];
discount = json['discount'].toDouble();
if (json['priceRange'] != null) {
priceRange = <PriceRange>[];
json['priceRange'].forEach((v) {
priceRange!.add(new PriceRange.fromJson(v));
});
}
priceRangeAll = json['priceRangeAll'];
sTypename = json['__typename'];
}