copyWithWrapped method

BaseUnauthorizedError copyWithWrapped({
  1. Wrapped<String?>? type,
  2. Wrapped<String>? title,
  3. Wrapped<int>? status,
  4. Wrapped<String>? traceId,
})

Implementation

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