copyWith method

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

Implementation

BaseForbiddenError copyWith({
  String? type,
  String? title,
  int? status,
  String? detail,
  String? instance,
  String? traceId,
}) {
  return BaseForbiddenError(
    type: type ?? this.type,
    title: title ?? this.title,
    status: status ?? this.status,
    detail: detail ?? this.detail,
    instance: instance ?? this.instance,
    traceId: traceId ?? this.traceId,
  );
}