copyWithWrapped method
WalletTransactionGetResponse
copyWithWrapped({
- Wrapped<
String> ? requestId, - Wrapped<
String> ? transactionId, - Wrapped<
String> ? reference, - Wrapped<
WalletTransactionGetResponseType> ? type, - Wrapped<
WalletTransactionAmount> ? amount, - Wrapped<
WalletTransactionCounterparty> ? counterparty, - Wrapped<
WalletTransactionStatus> ? status, - Wrapped<
DateTime> ? createdAt, - Wrapped<
DateTime> ? lastStatusUpdate, - Wrapped<
String?> ? paymentId,
Implementation
WalletTransactionGetResponse copyWithWrapped(
{Wrapped<String>? requestId,
Wrapped<String>? transactionId,
Wrapped<String>? reference,
Wrapped<enums.WalletTransactionGetResponseType>? type,
Wrapped<WalletTransactionAmount>? amount,
Wrapped<WalletTransactionCounterparty>? counterparty,
Wrapped<enums.WalletTransactionStatus>? status,
Wrapped<DateTime>? createdAt,
Wrapped<DateTime>? lastStatusUpdate,
Wrapped<String?>? paymentId}) {
return WalletTransactionGetResponse(
requestId: (requestId != null ? requestId.value : this.requestId),
transactionId:
(transactionId != null ? transactionId.value : this.transactionId),
reference: (reference != null ? reference.value : this.reference),
type: (type != null ? type.value : this.type),
amount: (amount != null ? amount.value : this.amount),
counterparty:
(counterparty != null ? counterparty.value : this.counterparty),
status: (status != null ? status.value : this.status),
createdAt: (createdAt != null ? createdAt.value : this.createdAt),
lastStatusUpdate: (lastStatusUpdate != null
? lastStatusUpdate.value
: this.lastStatusUpdate),
paymentId: (paymentId != null ? paymentId.value : this.paymentId));
}