keysToFields method
Convert unique keys to fields.
Implementation
List<Field> keysToFields(List<String> keys) {
List<Field> fields = [];
for (String key in keys) {
Field field = fieldsByKey[key]!;
fields.add(field);
}
return fields;
}