filteredAttributes method
Implementation
Map<String, dynamic> filteredAttributes(List<String> allowedKeys) {
var filtered = <String, dynamic>{};
for (var key in allowedKeys) {
if (attributes[key] != null) filtered[key] = attributes[key];
}
return filtered;
}