toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    "videoId": videoId,
    "duration": duration,
    "title": title,
    "channelName": channelName,
    "views": views
  };
}