copyWithWrapped method

IncomeVerificationPrecheckRequest copyWithWrapped({
  1. Wrapped<String?>? clientId,
  2. Wrapped<String?>? secret,
  3. Wrapped<IncomeVerificationPrecheckUser?>? user,
  4. Wrapped<IncomeVerificationPrecheckEmployer?>? employer,
  5. Wrapped<IncomeVerificationPrecheckPayrollInstitution?>? payrollInstitution,
  6. Wrapped<String?>? transactionsAccessToken,
  7. Wrapped<List<String>?>? transactionsAccessTokens,
  8. Wrapped<IncomeVerificationPrecheckMilitaryInfo?>? usMilitaryInfo,
})

Implementation

IncomeVerificationPrecheckRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<IncomeVerificationPrecheckUser?>? user,
    Wrapped<IncomeVerificationPrecheckEmployer?>? employer,
    Wrapped<IncomeVerificationPrecheckPayrollInstitution?>?
        payrollInstitution,
    Wrapped<String?>? transactionsAccessToken,
    Wrapped<List<String>?>? transactionsAccessTokens,
    Wrapped<IncomeVerificationPrecheckMilitaryInfo?>? usMilitaryInfo}) {
  return IncomeVerificationPrecheckRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      user: (user != null ? user.value : this.user),
      employer: (employer != null ? employer.value : this.employer),
      payrollInstitution: (payrollInstitution != null
          ? payrollInstitution.value
          : this.payrollInstitution),
      transactionsAccessToken: (transactionsAccessToken != null
          ? transactionsAccessToken.value
          : this.transactionsAccessToken),
      transactionsAccessTokens: (transactionsAccessTokens != null
          ? transactionsAccessTokens.value
          : this.transactionsAccessTokens),
      usMilitaryInfo: (usMilitaryInfo != null
          ? usMilitaryInfo.value
          : this.usMilitaryInfo));
}