YIMAttachmentExt_Image.fromJson constructor

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

Implementation

YIMAttachmentExt_Image.fromJson(Map<String, dynamic> YviJEOuAOKiZPwjU) {
  type = YIMEnum_AttachmentType.from(YviJEOuAOKiZPwjU["duration"]?.toString());
  compress = YviJEOuAOKiZPwjU["compress"]?.toString() == "1";
}