VideoListModel.fromJson constructor
VideoListModel.fromJson(
- Map<String, dynamic> json
)
Implementation
VideoListModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
cCommunityCategoryId = json['c_community_category_id'];
communityCategory = json['community_category'];
isBlocked = json['is_blocked'];
if (json['b_user_id'] != null) {
bUserIdStarter = json['b_user_id'];
} else {
bUserIdStarter = json['b_user_id_starter'];
}
if (json['b_user_band_fnama'] != null) {
bUserNamaStarter = json['b_user_band_fnama'];
} else {
bUserNamaStarter = json['b_user_nama_starter'];
}
if (json['b_user_band_image'] != null) {
bUserImageStarter = json['b_user_band_image'];
} else {
bUserImageStarter = json['b_user_image_starter'];
}
if (json['title'] != null) {
title =
// json['title'];
Helper.decode(json['title']);
}
cdate = json['cdate'];
deskripsi = Helper.decode(json['deskripsi']);
// json['deskripsi'];
currentLikeEmoji = json['currentLikeEmoji'];
alamat2 = json['alamat2'];
alamat4 = json['alamat4'];
kodepos = json['kodepos'];
totalDiscussion = json['total_discussion'];
topLikeImage1 = json['top_like_image_1'];
topLikeImage2 = json['top_like_image_2'];
topLikeImage3 = json['top_like_image_3'];
totalLikes = json['total_likes'];
isLiked = json['is_liked'];
isLikedImage = json['is_liked_image'];
videoId = json['video_id'];
url = json['url'];
urlThumb = json['url_thumb'];
canChatAndLike = json['can_chat_and_like'];
isOwnerPost = json['is_owner_post'];
cdateText = json['cdate_text'];
canpause = false;
loadinginit = false;
totalDislikes = json['total_dislikes'];
isDisliked = json['is_disliked'];
isFollow = json['is_follow'];
isAdminVerif = json['is_admin'].toString();
// if (json['is_admin'] == '1') {
// isAdminVerif = json['is_admin'].toString();
// } else {
// isAdminVerif = null;
// }
// if (json['locations'] != null) {
// locations = <Location>[];
// json['locations'].forEach((v) {
// locations?.add(new Location.fromJson(v));
// });
// }
// videoPlayerController = VideoPlayerController.network(url);
}