copyWithWrapped method

CreditBankIncomeHistoricalSummary copyWithWrapped({
  1. Wrapped<double?>? totalAmount,
  2. Wrapped<String?>? isoCurrencyCode,
  3. Wrapped<String?>? unofficialCurrencyCode,
  4. Wrapped<DateTime?>? startDate,
  5. Wrapped<DateTime?>? endDate,
  6. Wrapped<List<CreditBankIncomeTransaction>?>? transactions,
})

Implementation

CreditBankIncomeHistoricalSummary copyWithWrapped(
    {Wrapped<double?>? totalAmount,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode,
    Wrapped<DateTime?>? startDate,
    Wrapped<DateTime?>? endDate,
    Wrapped<List<CreditBankIncomeTransaction>?>? transactions}) {
  return CreditBankIncomeHistoricalSummary(
      totalAmount:
          (totalAmount != null ? totalAmount.value : this.totalAmount),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode),
      startDate: (startDate != null ? startDate.value : this.startDate),
      endDate: (endDate != null ? endDate.value : this.endDate),
      transactions:
          (transactions != null ? transactions.value : this.transactions));
}