YIMAttachmentExt_Image.fromJson constructor

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

Implementation

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