copyWithWrapped method

SpeechToTextWordResponseModel copyWithWrapped({
  1. Wrapped<String>? text,
  2. Wrapped? start,
  3. Wrapped? end,
  4. Wrapped<SpeechToTextWordResponseModelType>? type,
  5. Wrapped? speakerId,
  6. Wrapped<double>? logprob,
  7. Wrapped? characters,
})

Implementation

SpeechToTextWordResponseModel copyWithWrapped(
    {Wrapped<String>? text,
    Wrapped<dynamic>? start,
    Wrapped<dynamic>? end,
    Wrapped<enums.SpeechToTextWordResponseModelType>? type,
    Wrapped<dynamic>? speakerId,
    Wrapped<double>? logprob,
    Wrapped<dynamic>? characters}) {
  return SpeechToTextWordResponseModel(
      text: (text != null ? text.value : this.text),
      start: (start != null ? start.value : this.start),
      end: (end != null ? end.value : this.end),
      type: (type != null ? type.value : this.type),
      speakerId: (speakerId != null ? speakerId.value : this.speakerId),
      logprob: (logprob != null ? logprob.value : this.logprob),
      characters: (characters != null ? characters.value : this.characters));
}