copyWithWrapped method

FineTuningResponseModel copyWithWrapped({
  1. Wrapped<bool>? isAllowedToFineTune,
  2. Wrapped<Map<String, dynamic>>? state,
  3. Wrapped<List<String>>? verificationFailures,
  4. Wrapped<int>? verificationAttemptsCount,
  5. Wrapped<bool>? manualVerificationRequested,
  6. Wrapped? language,
  7. Wrapped? progress,
  8. Wrapped? message,
  9. Wrapped? datasetDurationSeconds,
  10. Wrapped? verificationAttempts,
  11. Wrapped? sliceIds,
  12. Wrapped? manualVerification,
  13. Wrapped? maxVerificationAttempts,
  14. Wrapped? nextMaxVerificationAttemptsResetUnixMs,
})

Implementation

FineTuningResponseModel copyWithWrapped(
    {Wrapped<bool>? isAllowedToFineTune,
    Wrapped<Map<String, dynamic>>? state,
    Wrapped<List<String>>? verificationFailures,
    Wrapped<int>? verificationAttemptsCount,
    Wrapped<bool>? manualVerificationRequested,
    Wrapped<dynamic>? language,
    Wrapped<dynamic>? progress,
    Wrapped<dynamic>? message,
    Wrapped<dynamic>? datasetDurationSeconds,
    Wrapped<dynamic>? verificationAttempts,
    Wrapped<dynamic>? sliceIds,
    Wrapped<dynamic>? manualVerification,
    Wrapped<dynamic>? maxVerificationAttempts,
    Wrapped<dynamic>? nextMaxVerificationAttemptsResetUnixMs}) {
  return FineTuningResponseModel(
      isAllowedToFineTune: (isAllowedToFineTune != null
          ? isAllowedToFineTune.value
          : this.isAllowedToFineTune),
      state: (state != null ? state.value : this.state),
      verificationFailures: (verificationFailures != null
          ? verificationFailures.value
          : this.verificationFailures),
      verificationAttemptsCount: (verificationAttemptsCount != null
          ? verificationAttemptsCount.value
          : this.verificationAttemptsCount),
      manualVerificationRequested: (manualVerificationRequested != null
          ? manualVerificationRequested.value
          : this.manualVerificationRequested),
      language: (language != null ? language.value : this.language),
      progress: (progress != null ? progress.value : this.progress),
      message: (message != null ? message.value : this.message),
      datasetDurationSeconds: (datasetDurationSeconds != null
          ? datasetDurationSeconds.value
          : this.datasetDurationSeconds),
      verificationAttempts: (verificationAttempts != null
          ? verificationAttempts.value
          : this.verificationAttempts),
      sliceIds: (sliceIds != null ? sliceIds.value : this.sliceIds),
      manualVerification: (manualVerification != null
          ? manualVerification.value
          : this.manualVerification),
      maxVerificationAttempts: (maxVerificationAttempts != null
          ? maxVerificationAttempts.value
          : this.maxVerificationAttempts),
      nextMaxVerificationAttemptsResetUnixMs:
          (nextMaxVerificationAttemptsResetUnixMs != null
              ? nextMaxVerificationAttemptsResetUnixMs.value
              : this.nextMaxVerificationAttemptsResetUnixMs));
}