copyWith method
WalletTransactionGetResponse
copyWith({
- String? requestId,
- String? transactionId,
- String? reference,
- WalletTransactionGetResponseType? type,
- WalletTransactionAmount? amount,
- WalletTransactionCounterparty? counterparty,
- WalletTransactionStatus? status,
- DateTime? createdAt,
- DateTime? lastStatusUpdate,
- String? paymentId,
Implementation
WalletTransactionGetResponse copyWith(
{String? requestId,
String? transactionId,
String? reference,
enums.WalletTransactionGetResponseType? type,
WalletTransactionAmount? amount,
WalletTransactionCounterparty? counterparty,
enums.WalletTransactionStatus? status,
DateTime? createdAt,
DateTime? lastStatusUpdate,
String? paymentId}) {
return WalletTransactionGetResponse(
requestId: requestId ?? this.requestId,
transactionId: transactionId ?? this.transactionId,
reference: reference ?? this.reference,
type: type ?? this.type,
amount: amount ?? this.amount,
counterparty: counterparty ?? this.counterparty,
status: status ?? this.status,
createdAt: createdAt ?? this.createdAt,
lastStatusUpdate: lastStatusUpdate ?? this.lastStatusUpdate,
paymentId: paymentId ?? this.paymentId);
}