toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['hash_id'] = hashId;
  data['rank'] = rank;
  data['version'] = version;
  data['type'] = type;
  data['read_override'] = readOverride;
  data['fixed_rank'] = fixedRank;
  if (newsObj != null) {
    data['news_obj'] = newsObj!.toJson();
  }
  return data;
}