YIMAttachmentExt_File.fromJson constructor

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

Implementation

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