YIMAttachmentExt_Image.fromJson constructor

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

Implementation

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