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