/** * Converts a json representation back to an instance. * * @param json The string representation of the JSON. * @return An instance of this class. */ public static PubSubMessage fromJSON(String json) { return JSONFormatter.fromJSON(json, PubSubMessage.class); } }