copyWithWrapped method

ModerationStatusResponseModel copyWithWrapped({
  1. Wrapped<bool>? isInProbation,
  2. Wrapped<bool>? enterpriseCheckNogoVoice,
  3. Wrapped<bool>? enterpriseCheckBlockNogoVoice,
  4. Wrapped<bool>? neverLiveModerate,
  5. Wrapped<int>? nogoVoiceSimilarVoiceUploadCount,
  6. Wrapped<bool>? enterpriseBackgroundModerationEnabled,
  7. Wrapped? safetyStatus,
  8. Wrapped? warningStatus,
  9. Wrapped<bool>? onWatchlist,
})

Implementation

ModerationStatusResponseModel copyWithWrapped(
    {Wrapped<bool>? isInProbation,
    Wrapped<bool>? enterpriseCheckNogoVoice,
    Wrapped<bool>? enterpriseCheckBlockNogoVoice,
    Wrapped<bool>? neverLiveModerate,
    Wrapped<int>? nogoVoiceSimilarVoiceUploadCount,
    Wrapped<bool>? enterpriseBackgroundModerationEnabled,
    Wrapped<dynamic>? safetyStatus,
    Wrapped<dynamic>? warningStatus,
    Wrapped<bool>? onWatchlist}) {
  return ModerationStatusResponseModel(
      isInProbation:
          (isInProbation != null ? isInProbation.value : this.isInProbation),
      enterpriseCheckNogoVoice: (enterpriseCheckNogoVoice != null
          ? enterpriseCheckNogoVoice.value
          : this.enterpriseCheckNogoVoice),
      enterpriseCheckBlockNogoVoice: (enterpriseCheckBlockNogoVoice != null
          ? enterpriseCheckBlockNogoVoice.value
          : this.enterpriseCheckBlockNogoVoice),
      neverLiveModerate: (neverLiveModerate != null
          ? neverLiveModerate.value
          : this.neverLiveModerate),
      nogoVoiceSimilarVoiceUploadCount:
          (nogoVoiceSimilarVoiceUploadCount != null
              ? nogoVoiceSimilarVoiceUploadCount.value
              : this.nogoVoiceSimilarVoiceUploadCount),
      enterpriseBackgroundModerationEnabled:
          (enterpriseBackgroundModerationEnabled != null
              ? enterpriseBackgroundModerationEnabled.value
              : this.enterpriseBackgroundModerationEnabled),
      safetyStatus:
          (safetyStatus != null ? safetyStatus.value : this.safetyStatus),
      warningStatus:
          (warningStatus != null ? warningStatus.value : this.warningStatus),
      onWatchlist:
          (onWatchlist != null ? onWatchlist.value : this.onWatchlist));
}