copyWith method

VoicePreviewResponseModel copyWith({
  1. String? audioBase64,
  2. String? generatedVoiceId,
  3. String? mediaType,
  4. double? durationSecs,
})

Implementation

VoicePreviewResponseModel copyWith(
    {String? audioBase64,
    String? generatedVoiceId,
    String? mediaType,
    double? durationSecs}) {
  return VoicePreviewResponseModel(
      audioBase64: audioBase64 ?? this.audioBase64,
      generatedVoiceId: generatedVoiceId ?? this.generatedVoiceId,
      mediaType: mediaType ?? this.mediaType,
      durationSecs: durationSecs ?? this.durationSecs);
}