stringifyRestValue function

String stringifyRestValue(
  1. Object? value
)

Converts a value into a query/header string.

Implementation

String stringifyRestValue(Object? value) {
  if (value == null) {
    return '';
  }
  if (value is DateTime) {
    return value.toIso8601String();
  }
  return value.toString();
}