toJson method
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,
};