copyWithWrapped method
VoiceResponseModel
copyWithWrapped({
- Wrapped<
String> ? voiceId, - Wrapped<
String> ? name, - Wrapped? samples,
- Wrapped<
VoiceResponseModelCategory> ? category, - Wrapped? fineTuning,
- Wrapped<
Map< ? labels,String, dynamic> > - Wrapped? description,
- Wrapped? previewUrl,
- Wrapped<
List< ? availableForTiers,String> > - Wrapped? settings,
- Wrapped? sharing,
- Wrapped<
List< ? highQualityBaseModelIds,String> > - Wrapped? verifiedLanguages,
- Wrapped? safetyControl,
- Wrapped? voiceVerification,
- Wrapped? permissionOnResource,
- Wrapped? isOwner,
- Wrapped<
bool?> ? isLegacy, - Wrapped<
bool?> ? isMixed, - 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));
}