valueOf<TField> method
Decodes the value of the Field with name from the query group
using the Field.toValue.
Implementation
TField valueOf<TField>(String name, QueryGroup group) {
final field = fields.firstWhereOrNull(
(field) => field.name == name,
);
if (field == null) {
throw ArgumentError(
'Field with name $name not found in $runtimeType.',
);
}
return field.valueFrom(group) as TField;
}