copyWithWrapped method

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

Implementation

PaymentInitiationRecipientGetResponse copyWithWrapped(
    {Wrapped<String>? requestId,
    Wrapped<String>? recipientId,
    Wrapped<String>? name,
    Wrapped<PaymentInitiationAddress?>? address,
    Wrapped<String?>? iban,
    Wrapped<RecipientBACSNullable?>? bacs}) {
  return PaymentInitiationRecipientGetResponse(
      requestId: (requestId != null ? requestId.value : this.requestId),
      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));
}