News.fromJson constructor

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

Implementation

factory News.fromJson(Map<String, dynamic> json) {
  return News(
    newsID: json['newsID'],
    newsTitle: json['newsTitle'],
    newsContent:
        json['newsContent'] == null ? null : Rx<String>(json['newsContent']),
    newssummary: json['newssummary'],
    newsImage: json['newsImage'],
    author: json['author'],
    authoravatar: json['authoravatar'],
    newsViews: json['newsViews'],
  );
}