toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "priceOverrides": priceOverrides == null ? null : priceOverrides.toJson(),
  "currency": currency == null ? null : currency,
  "basePrice": basePrice == null ? null : basePrice,
  "offers": offers == null ? null : List<dynamic>.from(offers.map((x) => x.toJson())),
  "_id": id == null ? null : id,
  "price": price == null ? null : price,
  "duration": duration == null ? null : duration,
};