VideoMessageNode.fromJson constructor

VideoMessageNode.fromJson(
  1. Map<String, dynamic> json
)

Implementation

VideoMessageNode.fromJson(Map<String, dynamic> json)
    : super(MessageElemTypeEnum.Video) {
  if (json['videoPath'] != null) videoPath = json["videoPath"];
  if (json['videoUuid'] != null) _videoUuid = json["videoUuid"];
  if (json['videoSize'] != null) _videoSize = json["videoSize"];
  if (json['duration'] != null) duration = json["duration"];
  if (json['snapshotPath'] != null) snapshotPath = json["snapshotPath"];
  if (json['snapshotUuid'] != null) _snapshotUuid = json["snapshotUuid"];
  if (json['snapshotSize'] != null) _snapshotSize = json["snapshotSize"];
  if (json['snapshotWidth'] != null) _snapshotWidth = json["snapshotWidth"];
  if (json['snapshotHeight'] != null)
    _snapshotHeight = json["snapshotHeight"];
}