copyWithWrapped method

CreditBankIncomeAccount copyWithWrapped({
  1. Wrapped<String?>? accountId,
  2. Wrapped<String?>? mask,
  3. Wrapped<String?>? name,
  4. Wrapped<String?>? officialName,
  5. Wrapped<DepositoryAccountSubtype?>? subtype,
  6. Wrapped<CreditBankIncomeAccountType?>? type,
  7. Wrapped<List<Owner>?>? owners,
})

Implementation

CreditBankIncomeAccount copyWithWrapped(
    {Wrapped<String?>? accountId,
    Wrapped<String?>? mask,
    Wrapped<String?>? name,
    Wrapped<String?>? officialName,
    Wrapped<enums.DepositoryAccountSubtype?>? subtype,
    Wrapped<enums.CreditBankIncomeAccountType?>? type,
    Wrapped<List<Owner>?>? owners}) {
  return CreditBankIncomeAccount(
      accountId: (accountId != null ? accountId.value : this.accountId),
      mask: (mask != null ? mask.value : this.mask),
      name: (name != null ? name.value : this.name),
      officialName:
          (officialName != null ? officialName.value : this.officialName),
      subtype: (subtype != null ? subtype.value : this.subtype),
      type: (type != null ? type.value : this.type),
      owners: (owners != null ? owners.value : this.owners));
}