copyWith method

SpeechHistoryItemResponseModel copyWith({
  1. String? historyItemId,
  2. dynamic requestId,
  3. dynamic voiceId,
  4. dynamic modelId,
  5. dynamic voiceName,
  6. dynamic voiceCategory,
  7. dynamic text,
  8. int? dateUnix,
  9. int? characterCountChangeFrom,
  10. int? characterCountChangeTo,
  11. String? contentType,
  12. SpeechHistoryItemResponseModelState? state,
  13. dynamic settings,
  14. dynamic feedback,
  15. dynamic shareLinkId,
  16. dynamic source,
  17. dynamic alignments,
  18. 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);
}