copyWithWrapped method

SampleResponseModel copyWithWrapped({
  1. Wrapped<String>? sampleId,
  2. Wrapped<String>? fileName,
  3. Wrapped<String>? mimeType,
  4. Wrapped<int>? sizeBytes,
  5. Wrapped<String>? hash,
  6. Wrapped? durationSecs,
  7. Wrapped? removeBackgroundNoise,
  8. Wrapped? hasIsolatedAudio,
  9. Wrapped? hasIsolatedAudioPreview,
  10. Wrapped? speakerSeparation,
  11. Wrapped? trimStart,
  12. Wrapped? trimEnd,
})

Implementation

SampleResponseModel copyWithWrapped(
    {Wrapped<String>? sampleId,
    Wrapped<String>? fileName,
    Wrapped<String>? mimeType,
    Wrapped<int>? sizeBytes,
    Wrapped<String>? hash,
    Wrapped<dynamic>? durationSecs,
    Wrapped<dynamic>? removeBackgroundNoise,
    Wrapped<dynamic>? hasIsolatedAudio,
    Wrapped<dynamic>? hasIsolatedAudioPreview,
    Wrapped<dynamic>? speakerSeparation,
    Wrapped<dynamic>? trimStart,
    Wrapped<dynamic>? trimEnd}) {
  return SampleResponseModel(
      sampleId: (sampleId != null ? sampleId.value : this.sampleId),
      fileName: (fileName != null ? fileName.value : this.fileName),
      mimeType: (mimeType != null ? mimeType.value : this.mimeType),
      sizeBytes: (sizeBytes != null ? sizeBytes.value : this.sizeBytes),
      hash: (hash != null ? hash.value : this.hash),
      durationSecs:
          (durationSecs != null ? durationSecs.value : this.durationSecs),
      removeBackgroundNoise: (removeBackgroundNoise != null
          ? removeBackgroundNoise.value
          : this.removeBackgroundNoise),
      hasIsolatedAudio: (hasIsolatedAudio != null
          ? hasIsolatedAudio.value
          : this.hasIsolatedAudio),
      hasIsolatedAudioPreview: (hasIsolatedAudioPreview != null
          ? hasIsolatedAudioPreview.value
          : this.hasIsolatedAudioPreview),
      speakerSeparation: (speakerSeparation != null
          ? speakerSeparation.value
          : this.speakerSeparation),
      trimStart: (trimStart != null ? trimStart.value : this.trimStart),
      trimEnd: (trimEnd != null ? trimEnd.value : this.trimEnd));
}