VideoModel.fromJson constructor
VideoModel.fromJson(
- Map json
Implementation
VideoModel.fromJson(Map<dynamic, dynamic> json)
: id = json['id'],
user = json['user'],
userPic = json['user_pic'],
videoTitle = json['video_title'],
songName = json['song_name'],
likes = json['likes'],
comments = json['comments'],
url = json['url'],
thumbnail = json['thumbnail'],
videoDescription = json['description'],
liked = json['liked'] ?? false,
productName = json['product_name'],
productPermalink = json['product_permalink'],
stockStatus = json['stock_status'];