getQueryParams function

String getQueryParams(
  1. Map data
)

Implementation

String getQueryParams(Map<dynamic, dynamic> data) {
  return data.keys
      .map((key) => '$key=${Uri.encodeComponent(data[key].toString())}')
      .join('&');
}