asEntitySchema method Null safety

IMEntityDefinition asEntitySchema()
override

Implementation

IMEntityDefinition asEntitySchema() {
  if (this is! MEntityDefinition) return illegalState("Not an entity schema");
  return this as MEntityDefinition;
}