Get the model definition from records

I would like to obtain the definition of any model passed to a component. As far as I know, you can get the model definition writing something like this import user from "../models/user" but, is there any way of taking directly from the records?

I answer myself:

Ember.get(this.get('model.type'),'attributes');
1 Like