convertFieldsToStrings method

  1. @override
Iterable<String> convertFieldsToStrings(
  1. Iterable<TaxonomyIngredientField> fields
)
override

Converts the given list of fields to their corresponding query string values.

Implementation

@override
Iterable<String> convertFieldsToStrings(
    Iterable<TaxonomyIngredientField> fields) {
  return fields
      .where(
          (TaxonomyIngredientField field) => !ignoredFields.contains(field))
      .map<String>((TaxonomyIngredientField field) => field.offTag);
}