toJson method
Implementation
Map<String, dynamic> toJson() => {
'message': message,
'replyBy': replyBy,
'replyTo': replyTo,
'message_type': messageType.name,
'id': messageId,
'voiceMessageDuration': voiceMessageDuration?.inMicroseconds,
};