All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sailthru.client.params.AbstractApiParams Maven / Gradle / Ivy

The newest version!
package com.sailthru.client.params;

import com.google.gson.Gson;
import com.sailthru.client.SailthruUtil;
import com.sailthru.client.handler.JsonHandler;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Prajwal Tuladhar 
 */
public abstract class AbstractApiParams {
    public Map toHashMap() {
        Gson gson = SailthruUtil.createGson();
        String json = gson.toJson(this);
        JsonHandler handler = new JsonHandler();
        return (Map)handler.parseResponse(json);
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy