YIMAttachmentExt_Image.fromJson constructor

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

Implementation

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