toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'identity': identity,
'id': id,
'message': message,
'timestamp': timestamp,
'action': action,
'isSender': isSender,
'request_id': requestId,
'meeting_uid': meetingUid,
'display_name': displayName,
'participant_lobby_status': participantLobbyStatus,
'token': token,
'value': value,
'user_identity': userIdentity,
'user_name': userName,
'liveCaptionsData': liveCaptionsData?.toJson(),
'partial': partialTranscription,
'final': finalTranscription,
'participant_identity': participantIdentity,
'whiteboardId': whiteboardId,
'consent': consent,
'participants': participants?.map((e) => e.toJson()).toList(),
'dispatchId': dispatchId,
'mode': mode,
'isDeleted': isDeleted,
'isEdited': isEdited,
'replyMessage': replyMessage?.toJson(),
'messageId': messageId,
'reaction': reaction?.toJson(),
'reactions': reactions?.map((e) => e.toJson()).toList(),
'removeReaction': removeReaction,
'is_screen_share_allowed': isScreenShareAllowed,
// ✅ ADD NEW FIELD
};
}