model/src/main/java/eu/internetofus/common/model/Model.java
/**
   * Convert a model to a {@link JsonObject}.
   *
   * @return the object of the model or {@code null} if can not convert it.
   */
Convert a model to a  JsonObject.
@return the object of the model or  null if can not convert it.
Convert a model to a JsonObject . @return the object of the model or null if can not convert it .
default public JsonObject toJsonObject() {
    try {
      return new JsonObject(this.toBuffer());
    } catch (final Throwable throwable) {
      Logger.trace(throwable);
      return null;
    }
  }
default public JsonObject toJsonObject ( ) { try { return new JsonObject ( this . toBuffer ( ) ) ; } catch ( final Throwable throwable ) { Logger . trace ( throwable ) ; return null ; } }
Convert a model to a {@link JsonObject}.
Convert a model to a { @link JsonObject } .