toJson method
Implementation
String toJson() {
return json.encode({
"convId": convId,
"convType": convType,
"clientMsgId": clientMsgId ?? "",
"noticeId": noticeId ?? "",
"time": time,
"unreadCount": unreadCount,
"draftModel": draftModel?.toJson() ?? "",
"hidden": hidden,
"deleted": deleted,
});
}