Added constructor to RestInterval which takes JSONObject string as a
constructor parameter.