copyWithWrapped method

AccountBase copyWithWrapped({
  1. Wrapped<String>? accountId,
  2. Wrapped<AccountBalance>? balances,
  3. Wrapped<String?>? mask,
  4. Wrapped<String>? name,
  5. Wrapped<String?>? officialName,
  6. Wrapped<AccountType>? type,
  7. Wrapped<AccountSubtype?>? subtype,
  8. Wrapped<AccountBaseVerificationStatus?>? verificationStatus,
})

Implementation

AccountBase copyWithWrapped(
    {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.AccountBaseVerificationStatus?>? verificationStatus}) {
  return AccountBase(
      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));
}