Model constructor

Model(
  1. Domain domain,
  2. String modelCode
)

Implementation

Model(this.domain, String modelCode) {
  super.code = modelCode;
  domain.models.add(this);
}