ApexRequest constructor

ApexRequest({
  1. required Methods method,
  2. required String url,
  3. Type? requestConverterType,
  4. Type? responseConverterType,
  5. Map<String, String>? headers,
  6. dynamic body,
  7. Encoding? encoding,
})

Implementation

ApexRequest(
    {required this.method,
    required this.url,
    this.requestConverterType,
    this.responseConverterType,
    Map<String, String>? headers,
    this.body,
    this.encoding})
    : headers = {...(headers ?? {})};