code: public NotificationSettings readNotificationSettings(InputStream in) throws ConversionException, IOException {
          JSONObject json = parseObject(in);
          NotificationSettings ret = new NotificationSettings();
          ret.deliveryInterval = readIntInternal(json.get(N_DELIVERYINTERVAL));
          ret.inboxExpiry = readIntInternal(json.get(N_INBOXEXPIRY));
          return ret;
      }
docs: Decode a JSON document to retrieve a NotificationSettings instance.
  
  @param in The stream to read JSON from
  @return The decoded NotificationSettings instance
  @throws ConversionException If JSON uses unexpected structure/format
  @throws IOException If an I/O error occurs or if JSON is ill-formed.
  @see #writeNotificationSettings(OutputStream, NotificationSettings)