ManagedObject newInstance()

Creates a new instance of this entity's instance type.

Source

ManagedObject newInstance() {
  var model =
      instanceType.newInstance(new Symbol(""), []).reflectee as ManagedObject;
  model.entity = this;
  return model;
}