/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-03-14 14:50:33
 * @LastEditTime : 2022-03-14 15:10:15
 * @Description  : Do not edit
 */

class NoticeListModel {
  String? id;
  bool? isStick;
  String? title;
  String? noticePublicationTypeName;
  String? noticePublicationTypeId;
  String? createdByName;
  String? publishAt;

  NoticeListModel({
    this.id,
    this.isStick,
    this.title,
    this.noticePublicationTypeName,
    this.noticePublicationTypeId,
    this.createdByName,
    this.publishAt,
  });

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

    id = map['id'];
    isStick = map['isStick'];
    title = map['title'];
    noticePublicationTypeName = map['noticePublicationTypeName'];
    noticePublicationTypeId = map['noticePublicationTypeId'];
    createdByName = map['createdByName'];
    publishAt = map['publishAt'];
  }

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

    json['id'] = this.id;
    json['isStick'] = this.isStick;
    json['title'] = this.title;
    json['noticePublicationTypeName'] = this.noticePublicationTypeName;
    json['noticePublicationTypeId'] = this.noticePublicationTypeId;
    json['createdByName'] = this.createdByName;
    json['publishAt'] = this.publishAt;

    return json;
  }
}
