docs: public void setSerializationMethod(SerializationMethod serializationMethod) {
          if (serializationMethod == SerializationMethod.NULL) {
              throw new IllegalArgumentException("Invalid serialization method.");
          }
          
          this.serializationMethod = serializationMethod == null ? SerializationMethod.JSON : serializationMethod;
      }