EMVideoMessageBody.fromJson constructor
EMVideoMessageBody.fromJson({
- required Map map,
Implementation
EMVideoMessageBody.fromJson({required Map map})
: super.fromJson(map: map, type: MessageType.VIDEO) {
duration = map["duration"];
thumbnailLocalPath = map["thumbnailLocalPath"];
thumbnailRemotePath = map["thumbnailRemotePath"];
thumbnailSecret = map["thumbnailSecret"];
height = (map["height"] ?? 0).toDouble();
width = (map["width"] ?? 0).toDouble();
thumbnailStatus = DownloadStatus.values[map["thumbnailStatus"]];
}