Add method to convert a set of models to a set of attributes for that model