Response constructor

Response({
  1. bool status = false,
  2. String? message,
  3. dynamic data,
  4. dynamic body,
  5. Request? request,
})

Constructs a Response object with optional properties.

The status defaults to false if not provided. message, data, body, and request are optional and can be null.

Implementation

Response(
    {this.status = false, this.message, this.data, this.body, this.request});