copyWithWrapped method

Wallet copyWithWrapped({
  1. Wrapped<String>? walletId,
  2. Wrapped<WalletBalance>? balance,
  3. Wrapped<WalletNumbers>? numbers,
  4. Wrapped<String?>? recipientId,
})

Implementation

Wallet copyWithWrapped(
    {Wrapped<String>? walletId,
    Wrapped<WalletBalance>? balance,
    Wrapped<WalletNumbers>? numbers,
    Wrapped<String?>? recipientId}) {
  return Wallet(
      walletId: (walletId != null ? walletId.value : this.walletId),
      balance: (balance != null ? balance.value : this.balance),
      numbers: (numbers != null ? numbers.value : this.numbers),
      recipientId:
          (recipientId != null ? recipientId.value : this.recipientId));
}