MediaChatMessage.fromJson constructor

MediaChatMessage.fromJson(
  1. Map<String, dynamic> json
)

Converts a JSON object into a MediaChatMessage instance.

Implementation

factory MediaChatMessage.fromJson(Map<String, dynamic> json) =>
    MediaChatMessage(
      isAudioRecorded: json["isAudioRecorded"],
      mediaCaptionText: json["mediaCaptionText"],
      mediaDownloadStatus: json["mediaDownloadStatus"],
      mediaDuration: json["mediaDuration"],
      mediaFileName: json["mediaFileName"],
      mediaFileSize: json["mediaFileSize"],
      mediaLocalStoragePath: json["mediaLocalStoragePath"],
      mediaProgressStatus: json["mediaProgressStatus"],
      mediaThumbImage: json["mediaThumbImage"],
      mediaUploadStatus: json["mediaUploadStatus"],
      messageId: json["messageId"],
      messageType: json["messageType"],
    );