copyWithWrapped method

VoiceResponseModel copyWithWrapped({
  1. Wrapped<String>? voiceId,
  2. Wrapped<String>? name,
  3. Wrapped? samples,
  4. Wrapped<VoiceResponseModelCategory>? category,
  5. Wrapped? fineTuning,
  6. Wrapped<Map<String, dynamic>>? labels,
  7. Wrapped? description,
  8. Wrapped? previewUrl,
  9. Wrapped<List<String>>? availableForTiers,
  10. Wrapped? settings,
  11. Wrapped? sharing,
  12. Wrapped<List<String>>? highQualityBaseModelIds,
  13. Wrapped? verifiedLanguages,
  14. Wrapped? safetyControl,
  15. Wrapped? voiceVerification,
  16. Wrapped? permissionOnResource,
  17. Wrapped? isOwner,
  18. Wrapped<bool?>? isLegacy,
  19. Wrapped<bool?>? isMixed,
  20. Wrapped? createdAtUnix,
})

Implementation

VoiceResponseModel copyWithWrapped(
    {Wrapped<String>? voiceId,
    Wrapped<String>? name,
    Wrapped<dynamic>? samples,
    Wrapped<enums.VoiceResponseModelCategory>? category,
    Wrapped<dynamic>? fineTuning,
    Wrapped<Map<String, dynamic>>? labels,
    Wrapped<dynamic>? description,
    Wrapped<dynamic>? previewUrl,
    Wrapped<List<String>>? availableForTiers,
    Wrapped<dynamic>? settings,
    Wrapped<dynamic>? sharing,
    Wrapped<List<String>>? highQualityBaseModelIds,
    Wrapped<dynamic>? verifiedLanguages,
    Wrapped<dynamic>? safetyControl,
    Wrapped<dynamic>? voiceVerification,
    Wrapped<dynamic>? permissionOnResource,
    Wrapped<dynamic>? isOwner,
    Wrapped<bool?>? isLegacy,
    Wrapped<bool?>? isMixed,
    Wrapped<dynamic>? createdAtUnix}) {
  return VoiceResponseModel(
      voiceId: (voiceId != null ? voiceId.value : this.voiceId),
      name: (name != null ? name.value : this.name),
      samples: (samples != null ? samples.value : this.samples),
      category: (category != null ? category.value : this.category),
      fineTuning: (fineTuning != null ? fineTuning.value : this.fineTuning),
      labels: (labels != null ? labels.value : this.labels),
      description:
          (description != null ? description.value : this.description),
      previewUrl: (previewUrl != null ? previewUrl.value : this.previewUrl),
      availableForTiers: (availableForTiers != null
          ? availableForTiers.value
          : this.availableForTiers),
      settings: (settings != null ? settings.value : this.settings),
      sharing: (sharing != null ? sharing.value : this.sharing),
      highQualityBaseModelIds: (highQualityBaseModelIds != null
          ? highQualityBaseModelIds.value
          : this.highQualityBaseModelIds),
      verifiedLanguages: (verifiedLanguages != null
          ? verifiedLanguages.value
          : this.verifiedLanguages),
      safetyControl:
          (safetyControl != null ? safetyControl.value : this.safetyControl),
      voiceVerification: (voiceVerification != null
          ? voiceVerification.value
          : this.voiceVerification),
      permissionOnResource: (permissionOnResource != null
          ? permissionOnResource.value
          : this.permissionOnResource),
      isOwner: (isOwner != null ? isOwner.value : this.isOwner),
      isLegacy: (isLegacy != null ? isLegacy.value : this.isLegacy),
      isMixed: (isMixed != null ? isMixed.value : this.isMixed),
      createdAtUnix:
          (createdAtUnix != null ? createdAtUnix.value : this.createdAtUnix));
}