toOptions method

Options toOptions()

Converts the current request options to Dio's Options format.

This method is useful for transforming the RestApiClientRequestOptions into a format that can be utilized by Dio when making HTTP requests.

Implementation

Options toOptions() {
  return Options(headers: headers, contentType: contentType);
}