copyWith method

BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost 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. BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization? applyTextNormalization,
  13. bool? applyLanguageTextNormalization,
})

Implementation

BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost copyWith(
    {String? text,
    String? modelId,
    dynamic languageCode,
    dynamic voiceSettings,
    dynamic pronunciationDictionaryLocators,
    dynamic seed,
    dynamic previousText,
    dynamic nextText,
    dynamic previousRequestIds,
    dynamic nextRequestIds,
    bool? usePvcAsIvc,
    enums
        .BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization?
        applyTextNormalization,
    bool? applyLanguageTextNormalization}) {
  return BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost(
      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);
}