ChatVideoMessageBody.fromJson constructor

ChatVideoMessageBody.fromJson({
  1. required Map map,
})

Implementation

ChatVideoMessageBody.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 =
      ChatFileMessageBody.downloadStatusFromInt(map["thumbnailStatus"]);
}