code: private void readAll(final boolean readModelDescriptor) throws IOException {
      String[] columns = (String[]) _lkv.get("[columns]");
      String[][] domains = parseModelDomains(columns.length);
      boolean isSupervised = readkv("supervised");
      _model = makeModel(columns, domains, isSupervised ? columns[columns.length - 1] : null);
      _model._uuid = readkv("uuid");
      _model._h2oVersion = readkv("h2o_version", "unknown");
      _model._category = hex.ModelCategory.valueOf((String) readkv("category"));
      _model._supervised = isSupervised;
      _model._nfeatures = readkv("n_features");
      _model._nclasses = readkv("n_classes");
      _model._balanceClasses = readkv("balance_classes");
      _model._defaultThreshold = readkv("default_threshold");
      _model._priorClassDistrib = readkv("prior_class_distrib");
      _model._modelClassDistrib = readkv("model_class_distrib");
      _model._offsetColumn = readkv("offset_column");
      _model._mojo_version = ((Number) readkv("mojo_version")).doubleValue();
      checkMaxSupportedMojoVersion();
      readModelData();
      if (readModelDescriptor) {
        _model._modelDescriptor = readModelDescriptor();
      }
    }
docs: --------------------------------------------------------------------------------------------------------------------