copyWith method

WalletTransactionGetResponse copyWith({
  1. String? requestId,
  2. String? transactionId,
  3. String? reference,
  4. WalletTransactionGetResponseType? type,
  5. WalletTransactionAmount? amount,
  6. WalletTransactionCounterparty? counterparty,
  7. WalletTransactionStatus? status,
  8. DateTime? createdAt,
  9. DateTime? lastStatusUpdate,
  10. 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);
}