ResponseModel<T> constructor

ResponseModel<T>({
  1. String? type,
  2. T? data,
  3. Response? response,
  4. int? statusCode,
  5. String? statusMessage,
  6. Headers? headers,
  7. required RequestOptions requestOptions,
  8. List<RedirectRecord> redirects = const [],
  9. Map<String, dynamic>? extra,
  10. BaseOptions? baseOptions,
  11. dynamic error,
})

Implementation

ResponseModel({
  this.type,
  super.data,
  this.response,
  super.statusCode,
  super.statusMessage,
  super.headers,
  required super.requestOptions,
  super.redirects,
  super.extra,
  this.baseOptions,
  this.error,
});