ApiErrorResponse constructor

ApiErrorResponse({
  1. String? message,
  2. int? statusCode,
  3. String? status,
  4. String? data,
  5. String? validation,
})

Constructor to initialize the API error response object.

message represents the error message(s) returned by the API. statusCode represents the HTTP status code.

Implementation

ApiErrorResponse({
  this.message,
  this.statusCode,
  this.status,
  this.data,
  this.validation,
});