model/src/main/java/eu/internetofus/common/model/Model.java
/**
   * Obtain the model associated to a {@link JsonObject}.
   *
   * @param value object to obtain the model.
   * @param type  of model to obtain
   *
   * @param <T>   to obtain
   *
   * @return the model defined on the object or {@code null} if can not obtain it.
   */
Obtain the model associated to a  JsonObject.
@param value object to obtain the model.
@param type  of model to obtain

@param    to obtain

@return the model defined on the object or  null if can not obtain it.
Obtain the model associated to a JsonObject . @param value object to obtain the model . @param type of model to obtain @param to obtain @return the model defined on the object or null if can not obtain it .
public static <T> T fromJsonObject(final JsonObject value, final Class<T> type) {
    if (value != null) {
      try {
        return Json.decodeValue(value.toBuffer(), type);
      } catch (final Throwable throwable) {
        Logger.trace(throwable);
      }
    }
    return null;
  }
public static < T > T fromJsonObject ( final JsonObject value , final Class < T > type ) { if ( value != null ) { try { return Json . decodeValue ( value . toBuffer ( ) , type ) ; } catch ( final Throwable throwable ) { Logger . trace ( throwable ) ; } } return null ; }
Obtain the model associated to a {@link JsonObject}.
Obtain the model associated to a { @link JsonObject } .
// No model found