copyWith method

BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost copyWith({
  1. String? text,
  2. String? modelId,
  3. dynamic languageCode,
  4. dynamic voiceSettings,
  5. dynamic pronunciationDictionaryLocators,
  6. dynamic seed,
  7. dynamic previousText,
  8. dynamic nextText,
  9. dynamic previousRequestIds,
  10. dynamic nextRequestIds,
  11. bool? usePvcAsIvc,
  12. BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization? applyTextNormalization,
  13. bool? applyLanguageTextNormalization,
})

Implementation

BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost
    copyWith(
        {String? text,
        String? modelId,
        dynamic languageCode,
        dynamic voiceSettings,
        dynamic pronunciationDictionaryLocators,
        dynamic seed,
        dynamic previousText,
        dynamic nextText,
        dynamic previousRequestIds,
        dynamic nextRequestIds,
        bool? usePvcAsIvc,
        enums
            .BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization?
            applyTextNormalization,
        bool? applyLanguageTextNormalization}) {
  return BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost(
      text: text ?? this.text,
      modelId: modelId ?? this.modelId,
      languageCode: languageCode ?? this.languageCode,
      voiceSettings: voiceSettings ?? this.voiceSettings,
      pronunciationDictionaryLocators: pronunciationDictionaryLocators ??
          this.pronunciationDictionaryLocators,
      seed: seed ?? this.seed,
      previousText: previousText ?? this.previousText,
      nextText: nextText ?? this.nextText,
      previousRequestIds: previousRequestIds ?? this.previousRequestIds,
      nextRequestIds: nextRequestIds ?? this.nextRequestIds,
      usePvcAsIvc: usePvcAsIvc ?? this.usePvcAsIvc,
      applyTextNormalization:
          applyTextNormalization ?? this.applyTextNormalization,
      applyLanguageTextNormalization: applyLanguageTextNormalization ??
          this.applyLanguageTextNormalization);
}