toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "title": title == null ? null : title,
      "price": price == null ? null : price,
      "duration": duration == null ? null : duration,
      "currency": currency == null ? null : currency,
    };