ApiRequest<ResponseType, InnerType> constructor

ApiRequest<ResponseType, InnerType>({
  1. String? requestId,
  2. bool hasPagination = false,
  3. bool isMultipart = false,
  4. List<Extra>? extra,
  5. bool? ovveride500Error = true,
  6. Map<String, String> headers = const {},
  7. Map<String, dynamic> query = const {},
  8. ErrorDescription? error,
  9. String? nestedKey,
  10. String? method = ApiMethods.get,
  11. String dataKey = '',
  12. List<ApiInterceptor> interceptors = const [],
  13. String path = '',
  14. required String baseUrl,
  15. int timeout = 50,
  16. Map<String, dynamic>? body,
})

Implementation

ApiRequest(
    {String? requestId,
    this.hasPagination = false,
    this.isMultipart = false,
    this.extra,
    this.ovveride500Error = true,
    this.headers = const {},
    this.query = const {},
    this.error,
    this.nestedKey,
    this.method = ApiMethods.get,
    this.dataKey = '',
    this.interceptors = const [],
    this.path = '',
    required this.baseUrl,
    this.timeout = 50,
    this.body})
    : requestId = requestId ?? UniqueKey().toString();