toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data["id"] = this.id;
data["calmName"] = this.calmName;
data["pictureUrl"] = this.pictureUrl;
data["videoUrl"] = this.videoUrl;
data["datetime"] = this.datetime;
data["isUniversal"] = this.isUniversal;
data["cardType"] = this.cardType;
data["duration"] = this.duration;
data["price"] = this.price;
data["currency"] = this.currency;
data["freeSampleFrom"] = this.freeSampleFrom;
data["freeSampleTo"] = this.freeSampleTo;
data["rating"] = this.rating;
data["numberOfSubscriber"] = this.numberOfSubscriber;
data["creator"] = this.creator?.toJson();
if (this.category != null) data["category"] = this.category?.toJson();
return data;
}