copyWithWrapped method

AccountAssets copyWithWrapped({
  1. Wrapped<double>? daysAvailable,
  2. Wrapped<List<AssetReportTransaction>>? transactions,
  3. Wrapped<List<Owner>>? owners,
  4. Wrapped<OwnershipType?>? ownershipType,
  5. Wrapped<List<HistoricalBalance>>? historicalBalances,
  6. Wrapped<String>? accountId,
  7. Wrapped<AccountBalance>? balances,
  8. Wrapped<String?>? mask,
  9. Wrapped<String>? name,
  10. Wrapped<String?>? officialName,
  11. Wrapped<AccountType>? type,
  12. Wrapped<AccountSubtype?>? subtype,
  13. Wrapped<AccountAssetsVerificationStatus?>? verificationStatus,
})

Implementation

AccountAssets copyWithWrapped(
    {Wrapped<double>? daysAvailable,
    Wrapped<List<AssetReportTransaction>>? transactions,
    Wrapped<List<Owner>>? owners,
    Wrapped<enums.OwnershipType?>? ownershipType,
    Wrapped<List<HistoricalBalance>>? historicalBalances,
    Wrapped<String>? accountId,
    Wrapped<AccountBalance>? balances,
    Wrapped<String?>? mask,
    Wrapped<String>? name,
    Wrapped<String?>? officialName,
    Wrapped<enums.AccountType>? type,
    Wrapped<enums.AccountSubtype?>? subtype,
    Wrapped<enums.AccountAssetsVerificationStatus?>? verificationStatus}) {
  return AccountAssets(
      daysAvailable:
          (daysAvailable != null ? daysAvailable.value : this.daysAvailable),
      transactions:
          (transactions != null ? transactions.value : this.transactions),
      owners: (owners != null ? owners.value : this.owners),
      ownershipType:
          (ownershipType != null ? ownershipType.value : this.ownershipType),
      historicalBalances: (historicalBalances != null
          ? historicalBalances.value
          : this.historicalBalances),
      accountId: (accountId != null ? accountId.value : this.accountId),
      balances: (balances != null ? balances.value : this.balances),
      mask: (mask != null ? mask.value : this.mask),
      name: (name != null ? name.value : this.name),
      officialName:
          (officialName != null ? officialName.value : this.officialName),
      type: (type != null ? type.value : this.type),
      subtype: (subtype != null ? subtype.value : this.subtype),
      verificationStatus: (verificationStatus != null
          ? verificationStatus.value
          : this.verificationStatus));
}