copyWith method
LinkResponseAttributes
copyWith(
{ - int? amount,
- bool? archived,
- String? currency,
- String? description,
- bool? livemode,
- int? fee,
- String? status,
- int? taxAmount,
- List<PaymentTaxResponse?>? taxes,
- String? checkoutUrl,
- String? referenceNumber,
- DateTime? createdAt,
- DateTime? updatedAt,
- List<PaymentListAllResponse>? payments,
})
Implementation
LinkResponseAttributes copyWith({
int? amount,
bool? archived,
String? currency,
String? description,
bool? livemode,
int? fee,
String? status,
int? taxAmount,
List<PaymentTaxResponse?>? taxes,
String? checkoutUrl,
String? referenceNumber,
DateTime? createdAt,
DateTime? updatedAt,
List<PaymentListAllResponse>? payments,
}) {
return LinkResponseAttributes(
amount: amount ?? this.amount,
archived: archived ?? this.archived,
currency: currency ?? this.currency,
description: description ?? this.description,
livemode: livemode ?? this.livemode,
fee: fee ?? this.fee,
status: status ?? this.status,
taxAmount: taxAmount ?? this.taxAmount,
taxes: taxes ?? this.taxes,
checkoutUrl: checkoutUrl ?? this.checkoutUrl,
referenceNumber: referenceNumber ?? this.referenceNumber,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
payments: payments ?? this.payments,
);
}