requestOptionsToMap method

Map<String, dynamic> requestOptionsToMap()

Implementation

Map<String, dynamic> requestOptionsToMap() => <String, dynamic>{
      'uri': requestOptions.uri.path,
      'method': requestOptions.method,
      'baseUrl': requestOptions.baseUrl,
      'path': requestOptions.path,
      'requestHeaders': baseOptions?.headers,
      'responseHeaders': response?.headers.map,
      'body': requestOptions.data,
      'params': requestOptions.queryParameters,
      'contentType': requestOptions.contentType,
      'receiveTimeout': requestOptions.receiveTimeout,
      'sendTimeout': requestOptions.sendTimeout,
      'connectTimeout': requestOptions.connectTimeout,
      'extra': requestOptions.extra,
      'responseType': requestOptions.responseType.toString(),
    };