copyWithWrapped method
Implementation
PlaidError copyWithWrapped(
{Wrapped<enums.PlaidErrorType>? errorType,
Wrapped<String>? errorCode,
Wrapped<String>? errorMessage,
Wrapped<String?>? displayMessage,
Wrapped<String?>? requestId,
Wrapped<List<Object>?>? causes,
Wrapped<double?>? status,
Wrapped<String?>? documentationUrl,
Wrapped<String?>? suggestedAction}) {
return PlaidError(
errorType: (errorType != null ? errorType.value : this.errorType),
errorCode: (errorCode != null ? errorCode.value : this.errorCode),
errorMessage:
(errorMessage != null ? errorMessage.value : this.errorMessage),
displayMessage: (displayMessage != null
? displayMessage.value
: this.displayMessage),
requestId: (requestId != null ? requestId.value : this.requestId),
causes: (causes != null ? causes.value : this.causes),
status: (status != null ? status.value : this.status),
documentationUrl: (documentationUrl != null
? documentationUrl.value
: this.documentationUrl),
suggestedAction: (suggestedAction != null
? suggestedAction.value
: this.suggestedAction));
}