ApiResponse constructor

const ApiResponse({
  1. required int statusCode,
  2. required String rawBody,
  3. required dynamic data,
  4. required bool isSuccess,
  5. required Map<String, String> headers,
  6. String? errorMessage,
  7. Object? exception,
})

Creates an ApiResponse.

Implementation

const ApiResponse({
  required this.statusCode,
  required this.rawBody,
  required this.data,
  required this.isSuccess,
  required this.headers,
  this.errorMessage,
  this.exception,
});