copyWithWrapped method

CreditBankIncomeSource copyWithWrapped({
  1. Wrapped<String?>? incomeSourceId,
  2. Wrapped<String?>? incomeDescription,
  3. Wrapped<CreditBankIncomeCategory?>? incomeCategory,
  4. Wrapped<String?>? accountId,
  5. Wrapped<DateTime?>? startDate,
  6. Wrapped<DateTime?>? endDate,
  7. Wrapped<CreditBankIncomePayFrequency?>? payFrequency,
  8. Wrapped<double?>? totalAmount,
  9. Wrapped<int?>? transactionCount,
  10. Wrapped<List<CreditBankIncomeHistoricalSummary>?>? historicalSummary,
})

Implementation

CreditBankIncomeSource copyWithWrapped(
    {Wrapped<String?>? incomeSourceId,
    Wrapped<String?>? incomeDescription,
    Wrapped<enums.CreditBankIncomeCategory?>? incomeCategory,
    Wrapped<String?>? accountId,
    Wrapped<DateTime?>? startDate,
    Wrapped<DateTime?>? endDate,
    Wrapped<enums.CreditBankIncomePayFrequency?>? payFrequency,
    Wrapped<double?>? totalAmount,
    Wrapped<int?>? transactionCount,
    Wrapped<List<CreditBankIncomeHistoricalSummary>?>? historicalSummary}) {
  return CreditBankIncomeSource(
      incomeSourceId: (incomeSourceId != null
          ? incomeSourceId.value
          : this.incomeSourceId),
      incomeDescription: (incomeDescription != null
          ? incomeDescription.value
          : this.incomeDescription),
      incomeCategory: (incomeCategory != null
          ? incomeCategory.value
          : this.incomeCategory),
      accountId: (accountId != null ? accountId.value : this.accountId),
      startDate: (startDate != null ? startDate.value : this.startDate),
      endDate: (endDate != null ? endDate.value : this.endDate),
      payFrequency:
          (payFrequency != null ? payFrequency.value : this.payFrequency),
      totalAmount:
          (totalAmount != null ? totalAmount.value : this.totalAmount),
      transactionCount: (transactionCount != null
          ? transactionCount.value
          : this.transactionCount),
      historicalSummary: (historicalSummary != null
          ? historicalSummary.value
          : this.historicalSummary));
}