APIResponse<T> constructor

const APIResponse<T>(
  1. bool success,
  2. String message,
  3. int statusCode, {
  4. Map<String, String>? errors,
  5. dynamic body,
  6. T? value,
  7. Map<String, String> headers = const {},
})

Implementation

const APIResponse(
  this.success,
  this.message,
  this.statusCode, {
  this.errors,
  this.body,
  this.value,
  this.headers = const {},
});