src/OAuth2.js
function(json){
    
    // Protect against forgetting the new keyword when calling the constructor
    if(!(this instanceof OAuth2)){
      return new OAuth2(json);
    }
    
    // If the given object is already an instance then just return it. DON'T copy it.
    if(OAuth2.isInstance(json)){
      return json;
    }
    
    this.init(json);
  }
function(json){
    
    // Protect against forgetting the new keyword when calling the constructor
    if(!(this instanceof OAuth2)){
      return new OAuth2(json);
    }
    
    // If the given object is already an instance then just return it. DON'T copy it.
    if(OAuth2.isInstance(json)){
      return json;
    }
    
    this.init(json);
  }
OAuth 2 token responses

@class OAuth2
@extends Base
@param {Object} [json]