toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['userID'] = userID;
  data['timestamp'] = timestamp;
  data['groupID'] = groupID ?? "";
  data['msgID'] = msgID;
  data['readCount'] = readCount;
  data['unreadCount'] = unreadCount;
  return data;
}