groupBySerializer static method
dynamic
groupBySerializer(
- dynamic value
Implementation
static groupBySerializer(dynamic value) {
if (value is PrismaEnum) {
return value.name;
} else if (value is Iterable) {
return value.map(groupBySerializer);
} else if (value is PrismaUnion) {
if (value.$1 != null) return groupBySerializer(value.$1);
if (value.$2 != null) return groupBySerializer(value.$2);
}
return value;
}