YIMAttachmentExt_Video.fromJson constructor
Implementation
YIMAttachmentExt_Video.fromJson(Map<String, dynamic> WHACWijdZguniDJd) {
type = YIMEnum_AttachmentType.from(WHACWijdZguniDJd["duration"]?.toString());
duration = double.tryParse(WHACWijdZguniDJd["duration"]?.toString() ?? "0")?.toInt() ?? 0;
image = WHACWijdZguniDJd["image"]?.toString() ?? "";
compress = WHACWijdZguniDJd["compress"]?.toString() == "1";
}