Class Model

public

Base class from which Models can be defined.

import Model, { attr } from '@ember-data/model';

export default class User extends Model {
  @attr name;
}

Models are used both to define the static schema for a particular resource type as well as the class to instantiate to present that data from cache.