@Override
    public JSONObject toJsonObject() throws JSONException {

        JSONObject returnVal = super.toJsonObject();

        //Access Token...
        if(this.getAccessToken() != null)
        {
            returnVal.put(JSONMapping.ACCESS_TOKEN,this.getAccessToken());
        }

        //Id Token...
        if(this.getIdToken() != null)
        {
            returnVal.put(JSONMapping.ID_TOKEN,this.getIdToken());
        }

        //Token Type...
        if(this.getTokenType() != null)
        {
            returnVal.put(JSONMapping.TOKEN_TYPE,this.getTokenType());
        }

        return returnVal;
    }
@Override
    public JSONObject toJsonObject() throws JSONException {

        JSONObject returnVal = super.toJsonObject();

        
        if(this.getAccessToken() != null)
        {
            returnVal.put(JSONMapping.ACCESS_TOKEN,this.getAccessToken());
        }

        
        if(this.getIdToken() != null)
        {
            returnVal.put(JSONMapping.ID_TOKEN,this.getIdToken());
        }

        
        if(this.getTokenType() != null)
        {
            returnVal.put(JSONMapping.TOKEN_TYPE,this.getTokenType());
        }

        return returnVal;
    }
@ Override public JSONObject toJsonObject ( ) throws JSONException { JSONObject returnVal = super . toJsonObject ( ) ; //Access Token... if ( this . getAccessToken ( ) != null ) { returnVal . put ( JSONMapping . ACCESS_TOKEN , this . getAccessToken ( ) ) ; } //Id Token... if ( this . getIdToken ( ) != null ) { returnVal . put ( JSONMapping . ID_TOKEN , this . getIdToken ( ) ) ; } //Token Type... if ( this . getTokenType ( ) != null ) { returnVal . put ( JSONMapping . TOKEN_TYPE , this . getTokenType ( ) ) ; } return returnVal ; }
Conversion to {@code JSONObject} from Java Object.

@return {@code JSONObject} representation of {@code AccessToken}
@throws JSONException If there is a problem with the JSON Body.

@see ABaseFluidJSONObject#toJsonObject()
Conversion to { @code JSONObject } from Java Object .