class UnReadMessage {
  int? messageId;
  int? conversationId;
  String? senderEmployeeNumber;
  String? senderUserName;
  String? content;
  String? createdAt;
  String? moduleCode;
  String? referenceId;
  String? senderStatus;

  UnReadMessage(
      {this.messageId,
        this.conversationId,
        this.senderEmployeeNumber,
        this.senderUserName,
        this.content,
        this.createdAt,
        this.moduleCode,
        this.referenceId,
        this.senderStatus});

  UnReadMessage.fromJson(Map<String, dynamic> json) {
    messageId = json['messageId'];
    conversationId = json['conversationId'];
    senderEmployeeNumber = json['senderEmployeeNumber'];
    senderUserName = json['senderUserName'];
    content = json['content'];
    createdAt = json['createdAt'];
    moduleCode = json['moduleCode'];
    referenceId = json['referenceId'];
    senderStatus = json['senderStatus'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['messageId'] = this.messageId;
    data['conversationId'] = this.conversationId;
    data['senderEmployeeNumber'] = this.senderEmployeeNumber;
    data['senderUserName'] = this.senderUserName;
    data['content'] = this.content;
    data['createdAt'] = this.createdAt;
    data['moduleCode'] = this.moduleCode;
    data['referenceId'] = this.referenceId;
    data['senderStatus'] = this.senderStatus;
    return data;
  }
}
