code: public Object string_to_resource(Class<?> responseClass, String response)
  	{
  		try
  		{
  			Gson gson = new Gson();
  			return gson.fromJson(response, responseClass);
  		}catch(Exception e)
  		{
  			System.out.println(e.getMessage());
  		}
  		
  		return null;
  	}
docs: Converts Json string to NetScaler SDX resource.
  @param responseClass Type of the class to which the string has to be converted to.
  @param response input string.
  @return returns API resource object.