toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['sellingPrice'] = this.sellingPrice;
  data['minPrice'] = this.minPrice;
  data['maxPrice'] = this.maxPrice;
  data['mrp'] = this.mrp;
  data['type'] = this.type;
  data['discount'] = this.discount;
  if (this.priceRange != null) {
    data['priceRange'] = this.priceRange!.map((v) => v.toJson()).toList();
  }
  data['priceRangeAll'] = this.priceRangeAll;
  data['__typename'] = this.sTypename;
  return data;
}