copyWith method

DepositSwitchStateUpdateWebhook copyWith({
  1. String? webhookType,
  2. String? webhookCode,
  3. String? state,
  4. String? depositSwitchId,
  5. WebhookEnvironmentValues? environment,
})

Implementation

DepositSwitchStateUpdateWebhook copyWith(
    {String? webhookType,
    String? webhookCode,
    String? state,
    String? depositSwitchId,
    enums.WebhookEnvironmentValues? environment}) {
  return DepositSwitchStateUpdateWebhook(
      webhookType: webhookType ?? this.webhookType,
      webhookCode: webhookCode ?? this.webhookCode,
      state: state ?? this.state,
      depositSwitchId: depositSwitchId ?? this.depositSwitchId,
      environment: environment ?? this.environment);
}