parameterToString function
Format the given parameter object into a String.
Implementation
String parameterToString(dynamic value) {
if (value == null) {
return '';
}
if (value is DateTime) {
return value.toIso8601String();
}
if (value is AppointmentModelStatus) {
return AppointmentModelStatusTypeTransformer().encode(value).toString();
}
if (value is HealthStatus) {
return HealthStatusTypeTransformer().encode(value).toString();
}
return value.toString();
}