copyWith method

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

Implementation

SpeechToTextChunkResponseModel copyWith(
    {String? languageCode,
    double? languageProbability,
    String? text,
    List<SpeechToTextWordResponseModel>? words,
    dynamic additionalFormats}) {
  return SpeechToTextChunkResponseModel(
      languageCode: languageCode ?? this.languageCode,
      languageProbability: languageProbability ?? this.languageProbability,
      text: text ?? this.text,
      words: words ?? this.words,
      additionalFormats: additionalFormats ?? this.additionalFormats);
}