ApiResponse<T>.notFound constructor

ApiResponse<T>.notFound([
  1. String? message
])

Creates a not found response.

Implementation

factory ApiResponse.notFound([String? message]) {
  return ApiResponse<T>(
    success: false,
    error: message ?? 'Resource not found',
    statusCode: 404,
  );
}