copyWith method

RealtimeTranslationSession copyWith({
  1. String? id,
  2. String? type,
  3. int? expiresAt,
  4. String? model,
  5. RealtimeTranslationSessionAudio? audio,
})

Returns a copy with the given fields replaced.

Implementation

RealtimeTranslationSession copyWith({
  String? id,
  String? type,
  int? expiresAt,
  String? model,
  RealtimeTranslationSessionAudio? audio,
}) => RealtimeTranslationSession(
  id: id ?? this.id,
  type: type ?? this.type,
  expiresAt: expiresAt ?? this.expiresAt,
  model: model ?? this.model,
  audio: audio ?? this.audio,
);