toJson method
Converts a MediaChatMessage instance to a JSON map.
Implementation
Map<String, dynamic> toJson() => {
"isAudioRecorded": isAudioRecorded,
"mediaCaptionText": mediaCaptionText,
"mediaDownloadStatus": mediaDownloadStatus,
"mediaDuration": mediaDuration,
"mediaFileName": mediaFileName,
"mediaFileSize": mediaFileSize,
"mediaLocalStoragePath": mediaLocalStoragePath,
"mediaProgressStatus": mediaProgressStatus,
"mediaThumbImage": mediaThumbImage,
"mediaUploadStatus": mediaUploadStatus,
"messageId": messageId,
"messageType": messageType,
};