News.fromJson constructor

News.fromJson(
  1. Map<String, dynamic> json
)

Implementation

News.fromJson(Map<String, dynamic> json) {
  hashId = json['hash_id'];
  rank = json['rank'];
  version = json['version'];
  type = json['type'];
  readOverride = json['read_override'];
  fixedRank = json['fixed_rank'];
  newsObj = json['news_obj'] != null
      ? NewsObj.fromJson(json['news_obj'])
      : null;
}