copyWithWrapped method
Implementation
BaseForbiddenError copyWithWrapped({
Wrapped<String?>? type,
Wrapped<String>? title,
Wrapped<int>? status,
Wrapped<String?>? detail,
Wrapped<String?>? instance,
Wrapped<String>? traceId,
}) {
return BaseForbiddenError(
type: (type != null ? type.value : this.type),
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),
traceId: (traceId != null ? traceId.value : this.traceId),
);
}