ApiRequestConfig<TResponse extends ResponseBase> constructor

const ApiRequestConfig<TResponse extends ResponseBase>({
  1. required Uri url,
  2. required JsonDeserializer<TResponse> fromJson,
  3. Object? body,
  4. Encoding? encoding,
  5. String? authCode,
  6. String? authToken,
  7. Map<String, dynamic> params = const <String, dynamic>{},
  8. Map<String, String> headers = const <String, String>{},
  9. HttpMethod method = HttpMethod.get,
})

Implementation

const ApiRequestConfig({
  required this.url,
  required this.fromJson,
  this.body,
  this.encoding,
  this.authCode,
  this.authToken,
  this.params = const <String, dynamic>{},
  this.headers = const <String, String>{},
  this.method = HttpMethod.get,
});