copyWith method

PrivacyConfig copyWith({
  1. bool? recordVoice,
  2. int? retentionDays,
  3. bool? deleteTranscriptAndPii,
  4. bool? deleteAudio,
  5. bool? applyToExistingConversations,
  6. bool? zeroRetentionMode,
})

Implementation

PrivacyConfig copyWith(
    {bool? recordVoice,
    int? retentionDays,
    bool? deleteTranscriptAndPii,
    bool? deleteAudio,
    bool? applyToExistingConversations,
    bool? zeroRetentionMode}) {
  return PrivacyConfig(
      recordVoice: recordVoice ?? this.recordVoice,
      retentionDays: retentionDays ?? this.retentionDays,
      deleteTranscriptAndPii:
          deleteTranscriptAndPii ?? this.deleteTranscriptAndPii,
      deleteAudio: deleteAudio ?? this.deleteAudio,
      applyToExistingConversations:
          applyToExistingConversations ?? this.applyToExistingConversations,
      zeroRetentionMode: zeroRetentionMode ?? this.zeroRetentionMode);
}