copyWith method

LinkResponseAttributes copyWith({
  1. int? amount,
  2. bool? archived,
  3. String? currency,
  4. String? description,
  5. bool? livemode,
  6. int? fee,
  7. String? status,
  8. int? taxAmount,
  9. List<PaymentTaxResponse?>? taxes,
  10. String? checkoutUrl,
  11. String? referenceNumber,
  12. DateTime? createdAt,
  13. DateTime? updatedAt,
  14. 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,
  );
}