YIMAttachmentExt_Image.fromJson constructor

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

Implementation

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