fromJSON(json) {
    var builder = new ModelBuilder();
    var models = builder.buildModels(json);

    this.baseTypes = {};
    this.embeddables = {};
    this.entities = {};

    for (var ref in models) {
      var type = models[ref];
      this.addType(type);
    }
  }
/**
   * Replace the current schema by the provided one in json
   * @param {json} json The json schema data
   */
Replace the current schema by the provided one in json
@param {json} json The json schema data
Replace the current schema by the provided one in json @param { json } json The json schema data
fromJSON(json) {
    var builder = new ModelBuilder();
    var models = builder.buildModels(json);
    this.baseTypes = {};
    this.embeddables = {};
    this.entities = {};
    for (var ref in models) {
      var type = models[ref];
      this.addType(type);
    }
  }
fromJSON ( json ) { var builder = new ModelBuilder ( ) ; var models = builder . buildModels ( json ) ; this . baseTypes = { } ; this . embeddables = { } ; this . entities = { } ; for ( var ref in models ) { var type = models [ ref ] ; this . addType ( type ) ; } }
Replace the current schema by the provided one in json
 @param {json} json The json schema data
Replace the current schema by the provided one in json @param { json } json The json schema data