parameterToString function

String parameterToString(
  1. dynamic value
)

Format the given parameter object into a String.

Implementation

String parameterToString(dynamic value) {
  if (value == null) {
    return '';
  }
  if (value is DateTime) {
    return value.toUtc().toIso8601String();
  }
  if (value is MatchFormatEnum) {
    return MatchFormatEnumTypeTransformer().encode(value).toString();
  }
  if (value is MatchesOrderByEnum) {
    return MatchesOrderByEnumTypeTransformer().encode(value).toString();
  }
  return value.toString();
}