copyWith method

WalletTransactionStatusUpdateWebhook copyWith({
  1. String? webhookType,
  2. String? webhookCode,
  3. String? transactionId,
  4. WalletTransactionStatus? newStatus,
  5. WalletTransactionStatus? oldStatus,
  6. DateTime? timestamp,
  7. WebhookEnvironmentValues? environment,
})

Implementation

WalletTransactionStatusUpdateWebhook copyWith(
    {String? webhookType,
    String? webhookCode,
    String? transactionId,
    enums.WalletTransactionStatus? newStatus,
    enums.WalletTransactionStatus? oldStatus,
    DateTime? timestamp,
    enums.WebhookEnvironmentValues? environment}) {
  return WalletTransactionStatusUpdateWebhook(
      webhookType: webhookType ?? this.webhookType,
      webhookCode: webhookCode ?? this.webhookCode,
      transactionId: transactionId ?? this.transactionId,
      newStatus: newStatus ?? this.newStatus,
      oldStatus: oldStatus ?? this.oldStatus,
      timestamp: timestamp ?? this.timestamp,
      environment: environment ?? this.environment);
}