ApiResponse<BodyType, InnerType> constructor

ApiResponse<BodyType, InnerType>({
  1. dynamic bodyString,
  2. Pagination? pagination,
  3. int statusCode = 500,
  4. Map<String, dynamic>? headers,
  5. BodyType? body,
  6. Object? error,
  7. Map<String, dynamic>? extra,
  8. Object? cause,
  9. StackTrace? stackTrace,
  10. required ApiRequest<BodyType, InnerType> request,
})

Implementation

ApiResponse({
  this.bodyString,
  this.pagination,
  this.statusCode = 500,
  this.headers,
  this.body,
  this.error,
  this.extra,
  this.cause,
  this.stackTrace,
  required this.request,
});