copyWithWrapped method
LiabilitiesDefaultUpdateWebhook
copyWithWrapped({
- Wrapped<
String> ? webhookType, - Wrapped<
String> ? webhookCode, - Wrapped<
String> ? itemId, - Wrapped<
PlaidError?> ? error, - Wrapped<
List< ? accountIdsWithNewLiabilities,String> > - Wrapped<
LiabilitiesAccountIdsWithUpdatedLiabilities> ? accountIdsWithUpdatedLiabilities, - 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));
}