copyWithWrapped method

VoiceSharingResponseModel copyWithWrapped({
  1. Wrapped<VoiceSharingResponseModelStatus>? status,
  2. Wrapped? historyItemSampleId,
  3. Wrapped<int>? dateUnix,
  4. Wrapped<List<String>>? whitelistedEmails,
  5. Wrapped<String>? publicOwnerId,
  6. Wrapped<String>? originalVoiceId,
  7. Wrapped<bool>? financialRewardsEnabled,
  8. Wrapped<bool>? freeUsersAllowed,
  9. Wrapped<bool>? liveModerationEnabled,
  10. Wrapped? rate,
  11. Wrapped? fiatRate,
  12. Wrapped<int>? noticePeriod,
  13. Wrapped? disableAtUnix,
  14. Wrapped<bool>? voiceMixingAllowed,
  15. Wrapped<bool>? featured,
  16. Wrapped<VoiceSharingResponseModelCategory>? category,
  17. Wrapped? readerAppEnabled,
  18. Wrapped? imageUrl,
  19. Wrapped? banReason,
  20. Wrapped<int>? likedByCount,
  21. Wrapped<int>? clonedByCount,
  22. Wrapped<String>? name,
  23. Wrapped? description,
  24. Wrapped<Map<String, dynamic>>? labels,
  25. Wrapped<VoiceSharingResponseModelReviewStatus>? reviewStatus,
  26. Wrapped? reviewMessage,
  27. Wrapped<bool>? enabledInLibrary,
  28. Wrapped? instagramUsername,
  29. Wrapped? twitterUsername,
  30. Wrapped? youtubeUsername,
  31. Wrapped? tiktokUsername,
  32. Wrapped? moderationCheck,
  33. Wrapped? readerRestrictedOn,
})

Implementation

VoiceSharingResponseModel copyWithWrapped(
    {Wrapped<enums.VoiceSharingResponseModelStatus>? status,
    Wrapped<dynamic>? historyItemSampleId,
    Wrapped<int>? dateUnix,
    Wrapped<List<String>>? whitelistedEmails,
    Wrapped<String>? publicOwnerId,
    Wrapped<String>? originalVoiceId,
    Wrapped<bool>? financialRewardsEnabled,
    Wrapped<bool>? freeUsersAllowed,
    Wrapped<bool>? liveModerationEnabled,
    Wrapped<dynamic>? rate,
    Wrapped<dynamic>? fiatRate,
    Wrapped<int>? noticePeriod,
    Wrapped<dynamic>? disableAtUnix,
    Wrapped<bool>? voiceMixingAllowed,
    Wrapped<bool>? featured,
    Wrapped<enums.VoiceSharingResponseModelCategory>? category,
    Wrapped<dynamic>? readerAppEnabled,
    Wrapped<dynamic>? imageUrl,
    Wrapped<dynamic>? banReason,
    Wrapped<int>? likedByCount,
    Wrapped<int>? clonedByCount,
    Wrapped<String>? name,
    Wrapped<dynamic>? description,
    Wrapped<Map<String, dynamic>>? labels,
    Wrapped<enums.VoiceSharingResponseModelReviewStatus>? reviewStatus,
    Wrapped<dynamic>? reviewMessage,
    Wrapped<bool>? enabledInLibrary,
    Wrapped<dynamic>? instagramUsername,
    Wrapped<dynamic>? twitterUsername,
    Wrapped<dynamic>? youtubeUsername,
    Wrapped<dynamic>? tiktokUsername,
    Wrapped<dynamic>? moderationCheck,
    Wrapped<dynamic>? readerRestrictedOn}) {
  return VoiceSharingResponseModel(
      status: (status != null ? status.value : this.status),
      historyItemSampleId: (historyItemSampleId != null
          ? historyItemSampleId.value
          : this.historyItemSampleId),
      dateUnix: (dateUnix != null ? dateUnix.value : this.dateUnix),
      whitelistedEmails: (whitelistedEmails != null
          ? whitelistedEmails.value
          : this.whitelistedEmails),
      publicOwnerId:
          (publicOwnerId != null ? publicOwnerId.value : this.publicOwnerId),
      originalVoiceId: (originalVoiceId != null
          ? originalVoiceId.value
          : this.originalVoiceId),
      financialRewardsEnabled: (financialRewardsEnabled != null
          ? financialRewardsEnabled.value
          : this.financialRewardsEnabled),
      freeUsersAllowed: (freeUsersAllowed != null
          ? freeUsersAllowed.value
          : this.freeUsersAllowed),
      liveModerationEnabled: (liveModerationEnabled != null
          ? liveModerationEnabled.value
          : this.liveModerationEnabled),
      rate: (rate != null ? rate.value : this.rate),
      fiatRate: (fiatRate != null ? fiatRate.value : this.fiatRate),
      noticePeriod:
          (noticePeriod != null ? noticePeriod.value : this.noticePeriod),
      disableAtUnix:
          (disableAtUnix != null ? disableAtUnix.value : this.disableAtUnix),
      voiceMixingAllowed: (voiceMixingAllowed != null
          ? voiceMixingAllowed.value
          : this.voiceMixingAllowed),
      featured: (featured != null ? featured.value : this.featured),
      category: (category != null ? category.value : this.category),
      readerAppEnabled: (readerAppEnabled != null
          ? readerAppEnabled.value
          : this.readerAppEnabled),
      imageUrl: (imageUrl != null ? imageUrl.value : this.imageUrl),
      banReason: (banReason != null ? banReason.value : this.banReason),
      likedByCount:
          (likedByCount != null ? likedByCount.value : this.likedByCount),
      clonedByCount:
          (clonedByCount != null ? clonedByCount.value : this.clonedByCount),
      name: (name != null ? name.value : this.name),
      description:
          (description != null ? description.value : this.description),
      labels: (labels != null ? labels.value : this.labels),
      reviewStatus:
          (reviewStatus != null ? reviewStatus.value : this.reviewStatus),
      reviewMessage:
          (reviewMessage != null ? reviewMessage.value : this.reviewMessage),
      enabledInLibrary: (enabledInLibrary != null
          ? enabledInLibrary.value
          : this.enabledInLibrary),
      instagramUsername: (instagramUsername != null
          ? instagramUsername.value
          : this.instagramUsername),
      twitterUsername: (twitterUsername != null
          ? twitterUsername.value
          : this.twitterUsername),
      youtubeUsername: (youtubeUsername != null
          ? youtubeUsername.value
          : this.youtubeUsername),
      tiktokUsername: (tiktokUsername != null
          ? tiktokUsername.value
          : this.tiktokUsername),
      moderationCheck: (moderationCheck != null
          ? moderationCheck.value
          : this.moderationCheck),
      readerRestrictedOn: (readerRestrictedOn != null
          ? readerRestrictedOn.value
          : this.readerRestrictedOn));
}