createUrlFromDto<T> method

String? createUrlFromDto<T>(
  1. String method,
  2. dynamic request
)

Implementation

String? createUrlFromDto<T>(String method, dynamic request) {
  String? url = combinePaths([this.replyBaseUrl, nameOf(request)]);

  if (!hasRequestBody(method)) {
    url = appendQueryString(url, toMap(request));
  }

  return url;
}