copyWith method
SpeechHistoryItemResponseModel
copyWith({
- String? historyItemId,
- dynamic requestId,
- dynamic voiceId,
- dynamic modelId,
- dynamic voiceName,
- dynamic voiceCategory,
- dynamic text,
- int? dateUnix,
- int? characterCountChangeFrom,
- int? characterCountChangeTo,
- String? contentType,
- SpeechHistoryItemResponseModelState? state,
- dynamic settings,
- dynamic feedback,
- dynamic source,
- dynamic alignments,
- dynamic dialogue,
Implementation
SpeechHistoryItemResponseModel copyWith(
{String? historyItemId,
dynamic requestId,
dynamic voiceId,
dynamic modelId,
dynamic voiceName,
dynamic voiceCategory,
dynamic text,
int? dateUnix,
int? characterCountChangeFrom,
int? characterCountChangeTo,
String? contentType,
enums.SpeechHistoryItemResponseModelState? state,
dynamic settings,
dynamic feedback,
dynamic shareLinkId,
dynamic source,
dynamic alignments,
dynamic dialogue}) {
return SpeechHistoryItemResponseModel(
historyItemId: historyItemId ?? this.historyItemId,
requestId: requestId ?? this.requestId,
voiceId: voiceId ?? this.voiceId,
modelId: modelId ?? this.modelId,
voiceName: voiceName ?? this.voiceName,
voiceCategory: voiceCategory ?? this.voiceCategory,
text: text ?? this.text,
dateUnix: dateUnix ?? this.dateUnix,
characterCountChangeFrom:
characterCountChangeFrom ?? this.characterCountChangeFrom,
characterCountChangeTo:
characterCountChangeTo ?? this.characterCountChangeTo,
contentType: contentType ?? this.contentType,
state: state ?? this.state,
settings: settings ?? this.settings,
feedback: feedback ?? this.feedback,
shareLinkId: shareLinkId ?? this.shareLinkId,
source: source ?? this.source,
alignments: alignments ?? this.alignments,
dialogue: dialogue ?? this.dialogue);
}