class UpdateFriendsReq { final String? ownerUserID; final List? friendUserIDs; final bool? isPinned; final String? remark; final String? ex; UpdateFriendsReq({ this.ownerUserID, this.friendUserIDs, this.isPinned, this.remark, this.ex, }); UpdateFriendsReq.fromJson(Map json) : ownerUserID = json['ownerUserID'], friendUserIDs = json['friendUserIDs'], isPinned = json['isPinned'], remark = json['remark'], ex = json['ex']; Map toJson() { final data = {}; data['ownerUserID'] = ownerUserID; data['friendUserIDs'] = friendUserIDs; data['isPinned'] = isPinned; data['remark'] = remark; data['ex'] = ex; return data; } @override String toString() { return 'UpdateFriendsReq{ownerUserID: $ownerUserID, friendUserIDs: $friendUserIDs, isPinned: $isPinned, remark: $remark, ex: $ex}'; } } class ConversationReq { final String? userID; final String? groupID; final int? recvMsgOpt; final bool? isPinned; final bool? isPrivateChat; final String? ex; final int? burnDuration; final bool? isMsgDestruct; final int? msgDestructTime; final int? groupAtType; final String? channelID; final int? channelAtType; ConversationReq({ this.userID, this.groupID, this.recvMsgOpt, this.isPinned, this.isPrivateChat, this.ex, this.burnDuration, this.isMsgDestruct, this.msgDestructTime, this.groupAtType, this.channelID, this.channelAtType, }); ConversationReq.fromJson(Map json) : userID = json['userID'], groupID = json['groupID'], recvMsgOpt = json['recvMsgOpt'], isPinned = json['isPinned'], isPrivateChat = json['isPrivateChat'], ex = json['ex'], burnDuration = json['burnDuration'], isMsgDestruct = json['isMsgDestruct'], msgDestructTime = json['msgDestructTime'], channelID=json['channelID'], channelAtType = json['channelAtType'], groupAtType = json['groupAtType']; Map toJson() { final data = {}; data['userID'] = userID; data['groupID'] = groupID; data['recvMsgOpt'] = recvMsgOpt; data['isPinned'] = isPinned; data['isPrivateChat'] = isPrivateChat; data['ex'] = ex; data['burnDuration'] = burnDuration; data['isMsgDestruct'] = isMsgDestruct; data['msgDestructTime'] = msgDestructTime; data['groupAtType'] = groupAtType; data['channelID'] = channelID; data['channelAtType'] = channelAtType; return data; } }