copyWith method

RealtimeTranscriptionSessionCreateResponse copyWith({
  1. String? id,
  2. String? object,
  3. String? type,
  4. int? expiresAt,
  5. Object? audio = unsetCopyWithValue,
  6. Object? include = unsetCopyWithValue,
})

Returns a copy with the given fields replaced.

Pass null for any nullable field to clear the existing value.

Implementation

RealtimeTranscriptionSessionCreateResponse copyWith({
  String? id,
  String? object,
  String? type,
  int? expiresAt,
  Object? audio = unsetCopyWithValue,
  Object? include = unsetCopyWithValue,
}) => RealtimeTranscriptionSessionCreateResponse(
  id: id ?? this.id,
  object: object ?? this.object,
  type: type ?? this.type,
  expiresAt: expiresAt ?? this.expiresAt,
  audio: identical(audio, unsetCopyWithValue)
      ? this.audio
      : audio as RealtimeTranscriptionSessionAudio?,
  include: identical(include, unsetCopyWithValue)
      ? this.include
      : include as List<String>?,
);