copyWith method

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

Implementation

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