YIMAttachmentExt_Audio.fromJson constructor

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

Implementation

YIMAttachmentExt_Audio.fromJson(Map<String, dynamic> map) {
  duration = double.tryParse(map["duration"]?.toString() ?? "0")?.toInt() ?? 0;
}