toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['mediaType'] = this.mediaType;
if (this.thumbnails != null) {
data['thumbnails'] = this.thumbnails!.map((v) => v.toJson()).toList();
}
if (this.tracks != null) {
data['tracks'] = this.tracks!.map((v) => v.toJson()).toList();
}
data['title'] = this.title;
data['duration'] = this.duration;
data['transcodeMode'] = this.transcodeMode;
data['coverURL'] = this.coverURL;
return data;
}