YIMAttachmentExt_Video.fromJson constructor

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

Implementation

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