V2TimVideoElem.fromJson constructor
V2TimVideoElem.fromJson(
- Map json
Implementation
V2TimVideoElem.fromJson(Map json) {
elemType = MessageElemType.V2TIM_ELEM_TYPE_VIDEO;
json = Utils.formatJson(json);
videoPath = json['video_elem_video_path'];
UUID = json['video_elem_video_id'];
videoSize = json['video_elem_video_size'];
duration = json['video_elem_video_duration'];
videoUrl = json['video_elem_video_url'];
snapshotPath = json['video_elem_image_path'];
snapshotUUID = json['video_elem_image_id'];
snapshotSize = json['video_elem_image_size'];
snapshotWidth = json['video_elem_image_width'];
snapshotHeight = json['video_elem_image_height'];
snapshotUrl = json['video_elem_image_url'];
localVideoUrl = getDefaultLocalUrl(isSnapshot: false);
localSnapshotUrl = getDefaultLocalUrl(isSnapshot: true);
if (json['nextElem'] != null) {
nextElem = Utils.formatJson(json['nextElem']);
}
}