com.askfast.model.ModelBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of askfast-api-java Show documentation
Show all versions of askfast-api-java Show documentation
AskFast Library to use the AskFast system
package com.askfast.model;
import com.askfast.util.JSONUtil;
public abstract class ModelBase
{
public String toJSON()
{
String json = "{}";
try
{
json = JSONUtil.serialize( this );
}
catch ( Exception e )
{
}
return json;
}
public static T fromJSON(String json_string, Class classType)
{
T dialogObject = null;
try
{
dialogObject = JSONUtil.deserialize( json_string, classType );
}
catch ( Exception e )
{
}
return dialogObject;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy