|
|
@@ -56,6 +56,36 @@ class TalkBean {
|
|
|
|
|
|
factory TalkBean.fromJson(Map<String, dynamic> json) =>
|
|
|
_$TalkBeanFromJson(json);
|
|
|
+
|
|
|
+ TalkBean copyWith({
|
|
|
+ String? id,
|
|
|
+ String? taskId,
|
|
|
+ String? ssid,
|
|
|
+ String? audioUrl,
|
|
|
+ double? duration,
|
|
|
+ int? characters,
|
|
|
+ int? status,
|
|
|
+ String? title,
|
|
|
+ String? summary,
|
|
|
+ String? createTime,
|
|
|
+ bool? isExample,
|
|
|
+ bool? oversizeFile,
|
|
|
+ }) {
|
|
|
+ return TalkBean(
|
|
|
+ id: id ?? this.id,
|
|
|
+ taskId: taskId ?? this.taskId,
|
|
|
+ ssid: ssid ?? this.ssid,
|
|
|
+ audioUrl: audioUrl ?? this.audioUrl,
|
|
|
+ duration: duration ?? this.duration,
|
|
|
+ characters: characters ?? this.characters,
|
|
|
+ status: status ?? this.status,
|
|
|
+ title: title ?? this.title,
|
|
|
+ summary: summary ?? this.summary,
|
|
|
+ createTime: createTime ?? this.createTime,
|
|
|
+ isExample: isExample ?? this.isExample,
|
|
|
+ oversizeFile: oversizeFile ?? this.oversizeFile,
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
class TalkStatus {
|