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