toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'tid': tid,
    'topic': topic,
    'wid': wid,
    'uid': uid,
    'nickname': nickname,
    'avatar': avatar,
    'content': content,
    'timestamp': timestamp,
    'unreadCount': unreadCount,
    'type': type,
    'currentUid': currentUid,
    'client': client,
    'current': current,
    'top': top,
    'topVisitor': topVisitor,
    'nodisturb': nodisturb,
    'nodisturbVisitor': nodisturbVisitor,
    'unread': unread,
    'unreadVisitor': unreadVisitor
  };
}