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