NewsObj.fromJson constructor
NewsObj.fromJson(
- Map<String, dynamic> json
)
Implementation
NewsObj.fromJson(Map<String, dynamic> json) {
oldHashId = json['old_hash_id'];
hashId = json['hash_id'];
authorName = json['author_name'];
content = json['content'];
sourceUrl = json['source_url'];
sourceName = json['source_name'];
title = json['title'];
important = json['important'];
imageUrl = json['image_url'];
shortenedUrl = json['shortened_url'];
createdAt = json['created_at'];
score = json['score'];
categoryNames = json['category_names'].cast<String>();
relevancyTags = json['relevancy_tags'].cast<String>();
tenant = json['tenant'];
fbObjectId = json['fb_object_id'];
fbLikeCount = json['fb_like_count'];
countryCode = json['country_code'];
targetedCity = json['targeted_city'].cast<String>();
bottomHeadline = json['bottom_headline'];
bottomText = json['bottom_text'];
darkerFonts = json['darker_fonts'];
bottomPanelLink = json['bottom_panel_link'];
bottomType = json['bottom_type'];
version = json['version'];
dontShowAd = json['dont_show_ad'];
pollTenant = json['poll_tenant'];
videoOpinionEnabled = json['video_opinion_enabled'];
language = json['language'];
showInshortsBrandName = json['show_inshorts_brand_name'];
imageForRepresentation = json['image_for_representation'];
}