toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  var data = <String, dynamic>{};
  data['title'] = title;
  data['type'] = type;
  data['desc'] = desc;
  data['duration'] = duration;
  data['thumb_width'] = thumbWidth;
  data['thumb_height'] = thumbHeight;
  data['width'] = width;
  data['height'] = height;
  data['media_id'] = mediaId;
  data['_id'] = sId;
  data['url'] = url;
  data['media'] = media;
  data['thumbnail'] = thumbnail;
  data['date'] = date;
  data['channel'] = channel;
  data['is_vevo'] = isVevo;
  data['source'] = source;
  data['count'] = count;
  return data;
}