copyWithWrapped method

PaymentInitiationRecipient copyWithWrapped({
  1. Wrapped<String>? recipientId,
  2. Wrapped<String>? name,
  3. Wrapped<PaymentInitiationAddress?>? address,
  4. Wrapped<String?>? iban,
  5. Wrapped<RecipientBACSNullable?>? bacs,
})

Implementation

PaymentInitiationRecipient copyWithWrapped(
    {Wrapped<String>? recipientId,
    Wrapped<String>? name,
    Wrapped<PaymentInitiationAddress?>? address,
    Wrapped<String?>? iban,
    Wrapped<RecipientBACSNullable?>? bacs}) {
  return PaymentInitiationRecipient(
      recipientId:
          (recipientId != null ? recipientId.value : this.recipientId),
      name: (name != null ? name.value : this.name),
      address: (address != null ? address.value : this.address),
      iban: (iban != null ? iban.value : this.iban),
      bacs: (bacs != null ? bacs.value : this.bacs));
}