toQueryString property

String get toQueryString

Implementation

String get toQueryString {
  if (this == null || this!.isEmpty) return '';
  return this!.entries
      .map(
        (e) =>
            '${Uri.encodeComponent(e.key.toString())}=${Uri.encodeComponent(e.value.toString())}',
      )
      .join('&');
}