copyWithWrapped method

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

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),
  );
}