copyWith method

NewAccountsAvailableWebhook copyWith({
  1. String? webhookType,
  2. String? webhookCode,
  3. String? itemId,
  4. PlaidError? error,
  5. WebhookEnvironmentValues? environment,
})

Implementation

NewAccountsAvailableWebhook copyWith(
    {String? webhookType,
    String? webhookCode,
    String? itemId,
    PlaidError? error,
    enums.WebhookEnvironmentValues? environment}) {
  return NewAccountsAvailableWebhook(
      webhookType: webhookType ?? this.webhookType,
      webhookCode: webhookCode ?? this.webhookCode,
      itemId: itemId ?? this.itemId,
      error: error ?? this.error,
      environment: environment ?? this.environment);
}