copyWithWrapped method

BaseNotFoundError copyWithWrapped({
  1. Wrapped<String>? title,
  2. Wrapped<int>? status,
  3. Wrapped<String?>? detail,
  4. Wrapped<String?>? instance,
  5. Wrapped<int?>? entityId,
  6. Wrapped<String>? traceId,
})

Implementation

BaseNotFoundError copyWithWrapped({
  Wrapped<String>? title,
  Wrapped<int>? status,
  Wrapped<String?>? detail,
  Wrapped<String?>? instance,
  Wrapped<int?>? entityId,
  Wrapped<String>? traceId,
}) {
  return BaseNotFoundError(
    title: (title != null ? title.value : this.title),
    status: (status != null ? status.value : this.status),
    detail: (detail != null ? detail.value : this.detail),
    instance: (instance != null ? instance.value : this.instance),
    entityId: (entityId != null ? entityId.value : this.entityId),
    traceId: (traceId != null ? traceId.value : this.traceId),
  );
}