SmartApiResponse<T> constructor

const SmartApiResponse<T>({
  1. required bool success,
  2. String message = "",
  3. int? statusCode,
  4. T? data,
  5. dynamic raw,
})

Creates a response directly. You'll normally receive one from SmartApiClient.instance.get/post/put/delete rather than constructing it yourself.

Implementation

const SmartApiResponse({
  required this.success,
  this.message = "",
  this.statusCode,
  this.data,
  this.raw,
});