/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2023-02-21 14:53:03
 * @LastEditTime : 2023-02-23 15:24:38
 * @Description  : Do not edit
 */
class MessageIndexListModel {
  String? title;
  String? msg;
  String? type;
  bool? read;
  num? count;
  String? id;
  String? time;
  String? subType;
  String? communityId;
  List? msgId;

  MessageIndexListModel({
    this.title,
    this.msg,
    this.type,
    this.read,
    this.count,
    this.id,
    this.time,
    this.subType,
    this.communityId,
    this.msgId,
  });

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

    title = map['title'];
    msg = map['msg'];
    type = map['type'];
    read = map['read'];
    count = map['count'];
    id = map['id'];
    time = map['time'];
    subType = map['subType'];
    communityId = map['communityId'];
    msgId = map['msgId'];
  }

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

    json['title'] = this.title;
    json['msg'] = this.msg;
    json['type'] = this.type;
    json['read'] = this.read;
    json['count'] = this.count;
    json['id'] = this.id;
    json['time'] = this.time;
    json['subType'] = this.subType;
    json['communityId'] = this.communityId;
    json['msgId'] = this.msgId;

    return json;
  }
}
