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(),
// ✅ ADD NEW FIELD
};
}