copyWithWrapped method

SpeechToTextChunkResponseModel copyWithWrapped({
  1. Wrapped<String>? languageCode,
  2. Wrapped<double>? languageProbability,
  3. Wrapped<String>? text,
  4. Wrapped<List<SpeechToTextWordResponseModel>>? words,
  5. Wrapped? additionalFormats,
})

Implementation

SpeechToTextChunkResponseModel copyWithWrapped(
    {Wrapped<String>? languageCode,
    Wrapped<double>? languageProbability,
    Wrapped<String>? text,
    Wrapped<List<SpeechToTextWordResponseModel>>? words,
    Wrapped<dynamic>? additionalFormats}) {
  return SpeechToTextChunkResponseModel(
      languageCode:
          (languageCode != null ? languageCode.value : this.languageCode),
      languageProbability: (languageProbability != null
          ? languageProbability.value
          : this.languageProbability),
      text: (text != null ? text.value : this.text),
      words: (words != null ? words.value : this.words),
      additionalFormats: (additionalFormats != null
          ? additionalFormats.value
          : this.additionalFormats));
}