def as_models(self, klass):
try:<EOL><INDENT>return [klass(mod) for mod in self.tree.reply.data.results.array[<NUM_LIT:0>].item]<EOL><DEDENT>except AttributeError:<EOL><INDENT>return []<EOL><DEDENT>
Turns an array-style response into a list of models.