YIMAttachmentExt_Image.fromJson(Map<String, dynamic> map) { compress = map["compress"]?.toString() == "true"; }