toJson method

Map<String, dynamic> toJson()

Converts a MediaChatMessage instance into a JSON object.

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,
    };