code: public void writeNotificationSettings(OutputStream out, NotificationSettings value) throws IOException {
          writeStartObject(out);
          writeIntField(out, OM_DELIVERYINTERVAL, value.deliveryInterval);
          writeIntField(out, OM_INBOXEXPIRTY, value.inboxExpiry);
          writeEndObject(out);
      }
docs: Encode a NotificationSettings instance as JSON:
  {
  "deliveryInterval" : Integer
  }
  
  @param out The stream to write JSON to
  @param value The NotificationSettings instance to encode. Can't be null.
  @throws IOException If an I/O error occurs
  @see #readNotificationSettings(InputStream)