copyWith method

LinkTokenCreateRequestIncomeVerification copyWith({
  1. String? incomeVerificationId,
  2. String? assetReportId,
  3. String? precheckId,
  4. List<String>? accessTokens,
  5. List<IncomeVerificationSourceType>? incomeSourceTypes,
  6. LinkTokenCreateRequestIncomeVerificationBankIncome? bankIncome,
  7. LinkTokenCreateRequestIncomeVerificationPayrollIncome? payrollIncome,
  8. List<LinkTokenCreateRequestUserStatedIncomeSource>? statedIncomeSources,
})

Implementation

LinkTokenCreateRequestIncomeVerification copyWith(
    {String? incomeVerificationId,
    String? assetReportId,
    String? precheckId,
    List<String>? accessTokens,
    List<enums.IncomeVerificationSourceType>? incomeSourceTypes,
    LinkTokenCreateRequestIncomeVerificationBankIncome? bankIncome,
    LinkTokenCreateRequestIncomeVerificationPayrollIncome? payrollIncome,
    List<LinkTokenCreateRequestUserStatedIncomeSource>?
        statedIncomeSources}) {
  return LinkTokenCreateRequestIncomeVerification(
      incomeVerificationId: incomeVerificationId ?? this.incomeVerificationId,
      assetReportId: assetReportId ?? this.assetReportId,
      precheckId: precheckId ?? this.precheckId,
      accessTokens: accessTokens ?? this.accessTokens,
      incomeSourceTypes: incomeSourceTypes ?? this.incomeSourceTypes,
      bankIncome: bankIncome ?? this.bankIncome,
      payrollIncome: payrollIncome ?? this.payrollIncome,
      statedIncomeSources: statedIncomeSources ?? this.statedIncomeSources);
}