YIMAttachmentExt_Video.fromJson constructor

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

Implementation

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