copyWithWrapped method

Cause copyWithWrapped({
  1. Wrapped<String>? itemId,
  2. Wrapped<PlaidErrorType>? errorType,
  3. Wrapped<String>? errorCode,
  4. Wrapped<String>? errorMessage,
  5. Wrapped<String?>? displayMessage,
  6. Wrapped<String?>? requestId,
  7. Wrapped<List<Object>?>? causes,
  8. Wrapped<double?>? status,
  9. Wrapped<String?>? documentationUrl,
  10. 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));
}