copyWithWrapped method

CreditBankIncomeItem copyWithWrapped({
  1. Wrapped<List<CreditBankIncomeAccount>?>? bankIncomeAccounts,
  2. Wrapped<List<CreditBankIncomeSource>?>? bankIncomeSources,
  3. Wrapped<DateTime?>? lastUpdatedTime,
  4. Wrapped<String?>? institutionId,
  5. Wrapped<String?>? institutionName,
  6. Wrapped<String?>? itemId,
})

Implementation

CreditBankIncomeItem copyWithWrapped(
    {Wrapped<List<CreditBankIncomeAccount>?>? bankIncomeAccounts,
    Wrapped<List<CreditBankIncomeSource>?>? bankIncomeSources,
    Wrapped<DateTime?>? lastUpdatedTime,
    Wrapped<String?>? institutionId,
    Wrapped<String?>? institutionName,
    Wrapped<String?>? itemId}) {
  return CreditBankIncomeItem(
      bankIncomeAccounts: (bankIncomeAccounts != null
          ? bankIncomeAccounts.value
          : this.bankIncomeAccounts),
      bankIncomeSources: (bankIncomeSources != null
          ? bankIncomeSources.value
          : this.bankIncomeSources),
      lastUpdatedTime: (lastUpdatedTime != null
          ? lastUpdatedTime.value
          : this.lastUpdatedTime),
      institutionId:
          (institutionId != null ? institutionId.value : this.institutionId),
      institutionName: (institutionName != null
          ? institutionName.value
          : this.institutionName),
      itemId: (itemId != null ? itemId.value : this.itemId));
}