groupBySelectSerializer static method
dynamic
groupBySelectSerializer(
- dynamic value
Implementation
static groupBySelectSerializer(dynamic value) {
final by = groupBySerializer(value);
final select = <String, bool>{};
if (by is String) {
select[by] = true;
} else if (by is Iterable) {
for (final item in by) {
if (item is String) {
select[item] = true;
}
}
}
return select.isEmpty ? null : select;
}