copyWith method

PaymentInitiationRecipient copyWith({
  1. String? recipientId,
  2. String? name,
  3. PaymentInitiationAddress? address,
  4. String? iban,
  5. NullableRecipientBACS? bacs,
  6. String? emiRecipientId,
})

Implementation

PaymentInitiationRecipient copyWith(
    {String? recipientId,
    String? name,
    PaymentInitiationAddress? address,
    String? iban,
    NullableRecipientBACS? bacs,
    String? emiRecipientId}) {
  return PaymentInitiationRecipient(
      recipientId: recipientId ?? this.recipientId,
      name: name ?? this.name,
      address: address ?? this.address,
      iban: iban ?? this.iban,
      bacs: bacs ?? this.bacs,
      emiRecipientId: emiRecipientId ?? this.emiRecipientId);
}