YIMAttachmentExt_Video.fromJson constructor

YIMAttachmentExt_Video.fromJson(
  1. Map<String, dynamic> WHACWijdZguniDJd
)

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";
}