function fromJSON(json) {
    var instance = this.newInstance();
    var metadata = instance._metadata;
    this._managedType.fromJsonValue(metadata, json, instance);
    return instance;
  }
/**
   * Creates a new instance and sets the Managed Object to the given json
   * @param {json} json
   * @returns {T} instance
   */
Creates a new instance and sets the Managed Object to the given json
@param {json} json
@returns {T} instance
Creates a new instance and sets the Managed Object to the given json @param { json } json @returns { T } instance
function fromJSON(json) {
    var instance = this.newInstance();
    var metadata = instance._metadata;
    this._managedType.fromJsonValue(metadata, json, instance);
    return instance;
  }
function fromJSON ( json ) { var instance = this . newInstance ( ) ; var metadata = instance . _metadata ; this . _managedType . fromJsonValue ( metadata , json , instance ) ; return instance ; }
Creates a new instance and sets the Managed Object to the given json
 @param {json} json
 @returns {T} instance
Creates a new instance and sets the Managed Object to the given json @param { json } json @returns { T } instance