copyWithWrapped method

LiabilitiesDefaultUpdateWebhook copyWithWrapped({
  1. Wrapped<String>? webhookType,
  2. Wrapped<String>? webhookCode,
  3. Wrapped<String>? itemId,
  4. Wrapped<PlaidError?>? error,
  5. Wrapped<List<String>>? accountIdsWithNewLiabilities,
  6. Wrapped<LiabilitiesAccountIdsWithUpdatedLiabilities>? accountIdsWithUpdatedLiabilities,
  7. Wrapped<WebhookEnvironmentValues>? environment,
})

Implementation

LiabilitiesDefaultUpdateWebhook copyWithWrapped(
    {Wrapped<String>? webhookType,
    Wrapped<String>? webhookCode,
    Wrapped<String>? itemId,
    Wrapped<PlaidError?>? error,
    Wrapped<List<String>>? accountIdsWithNewLiabilities,
    Wrapped<LiabilitiesAccountIdsWithUpdatedLiabilities>?
        accountIdsWithUpdatedLiabilities,
    Wrapped<enums.WebhookEnvironmentValues>? environment}) {
  return LiabilitiesDefaultUpdateWebhook(
      webhookType:
          (webhookType != null ? webhookType.value : this.webhookType),
      webhookCode:
          (webhookCode != null ? webhookCode.value : this.webhookCode),
      itemId: (itemId != null ? itemId.value : this.itemId),
      error: (error != null ? error.value : this.error),
      accountIdsWithNewLiabilities: (accountIdsWithNewLiabilities != null
          ? accountIdsWithNewLiabilities.value
          : this.accountIdsWithNewLiabilities),
      accountIdsWithUpdatedLiabilities:
          (accountIdsWithUpdatedLiabilities != null
              ? accountIdsWithUpdatedLiabilities.value
              : this.accountIdsWithUpdatedLiabilities),
      environment:
          (environment != null ? environment.value : this.environment));
}