toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['id'] = id;
  map['uid'] = uid;
  map['avatar'] = avatar;
  map['nickName'] = nickName;
  map['sessionType'] = sessionType;
  map['lastMessageId'] = lastMessageId;
  map['lastMessageType'] = lastMessageType;
  map['lastMessageStatus'] = lastMessageStatus;
  map['lastMessageContent'] = lastMessageContent;
  map['lastMessageTime'] = lastMessageTime;
  map['unreadCount'] = unreadCount;
  return map;
}