toQueryParameterValue static method

String toQueryParameterValue(
  1. Object? value
)

Implementation

static String toQueryParameterValue(Object? value) {
  if (value == null) return '';
  if (value is List) return value.join(',');
  if (value is Map) {
    return value.entries.map((e) => '${e.key}:${e.value}').join(',');
  }
  return '$value';
}