copyWithWrapped method
Cause
copyWithWrapped({
- Wrapped<
String> ? itemId, - Wrapped<
PlaidErrorType> ? errorType, - Wrapped<
String> ? errorCode, - Wrapped<
String> ? errorMessage, - Wrapped<
String?> ? displayMessage, - Wrapped<
String?> ? requestId, - Wrapped<
List< ? causes,Object> ?> - Wrapped<
double?> ? status, - Wrapped<
String?> ? documentationUrl, - Wrapped<
String?> ? suggestedAction,
Implementation
Cause copyWithWrapped(
{Wrapped<String>? itemId,
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 Cause(
itemId: (itemId != null ? itemId.value : this.itemId),
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));
}