copyWithWrapped method

AssetReportItem copyWithWrapped({
  1. Wrapped<String>? itemId,
  2. Wrapped<String>? institutionName,
  3. Wrapped<String>? institutionId,
  4. Wrapped<DateTime>? dateLastUpdated,
  5. Wrapped<List<AccountAssets>>? accounts,
})

Implementation

AssetReportItem copyWithWrapped(
    {Wrapped<String>? itemId,
    Wrapped<String>? institutionName,
    Wrapped<String>? institutionId,
    Wrapped<DateTime>? dateLastUpdated,
    Wrapped<List<AccountAssets>>? accounts}) {
  return AssetReportItem(
      itemId: (itemId != null ? itemId.value : this.itemId),
      institutionName: (institutionName != null
          ? institutionName.value
          : this.institutionName),
      institutionId:
          (institutionId != null ? institutionId.value : this.institutionId),
      dateLastUpdated: (dateLastUpdated != null
          ? dateLastUpdated.value
          : this.dateLastUpdated),
      accounts: (accounts != null ? accounts.value : this.accounts));
}