copyWith method

BodySpeechToTextV1SpeechToTextPost copyWith({
  1. String? modelId,
  2. dynamic file,
  3. dynamic languageCode,
  4. bool? tagAudioEvents,
  5. dynamic numSpeakers,
  6. BodySpeechToTextV1SpeechToTextPostTimestampsGranularity? timestampsGranularity,
  7. bool? diarize,
  8. List<ExportOptions>? additionalFormats,
  9. BodySpeechToTextV1SpeechToTextPostFileFormat? fileFormat,
  10. dynamic cloudStorageUrl,
  11. bool? webhook,
})

Implementation

BodySpeechToTextV1SpeechToTextPost copyWith(
    {String? modelId,
    dynamic file,
    dynamic languageCode,
    bool? tagAudioEvents,
    dynamic numSpeakers,
    enums.BodySpeechToTextV1SpeechToTextPostTimestampsGranularity?
        timestampsGranularity,
    bool? diarize,
    List<ExportOptions>? additionalFormats,
    enums.BodySpeechToTextV1SpeechToTextPostFileFormat? fileFormat,
    dynamic cloudStorageUrl,
    bool? webhook}) {
  return BodySpeechToTextV1SpeechToTextPost(
      modelId: modelId ?? this.modelId,
      file: file ?? this.file,
      languageCode: languageCode ?? this.languageCode,
      tagAudioEvents: tagAudioEvents ?? this.tagAudioEvents,
      numSpeakers: numSpeakers ?? this.numSpeakers,
      timestampsGranularity:
          timestampsGranularity ?? this.timestampsGranularity,
      diarize: diarize ?? this.diarize,
      additionalFormats: additionalFormats ?? this.additionalFormats,
      fileFormat: fileFormat ?? this.fileFormat,
      cloudStorageUrl: cloudStorageUrl ?? this.cloudStorageUrl,
      webhook: webhook ?? this.webhook);
}