toJson method

Map<String, dynamic> toJson()

Implementation

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