YIMAttachmentExt_Video.fromJson constructor

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

Implementation

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