ApiRequest<ResponseType, InnerType> constructor

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

Implementation

ApiRequest(
    {String? requestId,
    this.hasPagination = false,
    this.isMultipart = false,
    this.extra,
    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();