YIMAttachmentExt_Image.fromJson constructor

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

Implementation

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