com.sailthru.client.params.AbstractApiParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sailthru-java-client Show documentation
Show all versions of sailthru-java-client Show documentation
Java client library for Sailthru API
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