toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = Map<String, dynamic>();
  if (this.priceOverrides != null) {
    data['priceOverrides'] = this.priceOverrides!.toJson();
  }
  data['currency'] = this.currency;
  data['basePrice'] = this.basePrice;
  if (this.offers != null) {
    data['offers'] = this.offers!.map((v) => v.toJson()).toList();
  }
  data['_id'] = this.sId;
  data['price'] = this.price;
  data['duration'] = this.duration;
  return data;
}