copyWithWrapped method

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

Implementation

DepositSwitchStateUpdateWebhook copyWithWrapped(
    {Wrapped<String?>? webhookType,
    Wrapped<String?>? webhookCode,
    Wrapped<String?>? state,
    Wrapped<String?>? depositSwitchId,
    Wrapped<enums.WebhookEnvironmentValues?>? environment}) {
  return DepositSwitchStateUpdateWebhook(
      webhookType:
          (webhookType != null ? webhookType.value : this.webhookType),
      webhookCode:
          (webhookCode != null ? webhookCode.value : this.webhookCode),
      state: (state != null ? state.value : this.state),
      depositSwitchId: (depositSwitchId != null
          ? depositSwitchId.value
          : this.depositSwitchId),
      environment:
          (environment != null ? environment.value : this.environment));
}