/*
 * @Author: LiOS
 * @Date: 2020-06-16 21:41:04
 * @LastEditors: ChenYaJin
 * @LastEditTime: 2022-10-13 16:53:58
 * @Description:
 */

class NoticeModel {
  String? id;
  String? title;
  String? publishAt;
  String? publisherName;
  String? theme;
  String? content;
  String? status;
  String? type;
  int? readCount;

  NoticeModel({
    this.id,
    this.title,
    this.publishAt,
    this.publisherName,
    this.theme,
    this.type,
    this.content,
    this.status,
    this.readCount,
  });

  NoticeModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    id = map['id'];
    title = map['title'];
    publishAt = map['publishAt'];
    publisherName = map["publisherName"];
    theme = map['theme'];
    type = map['type'];
    content = map['content'];
    status = map['status'];
    readCount = map['readCount'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['id'] = this.id;
    json['title'] = this.title;
    json['publishAt'] = this.publishAt;
    json["publisherName"] = this.publisherName;
    json['theme'] = this.theme;
    json['type'] = this.type;
    json['content'] = this.content;
    json['status'] = this.status;
    json['readCount'] = this.readCount;

    return json;
  }
}
