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

@return the model defined on the response or  null if can not obtain
it.
Obtain the model associated to a HttpResponse . @param response to obtain the model . @param type of model to obtain @param to obtain @return the model defined on the response or null if can not obtain it .
public static <T extends Model> T fromResponse(final HttpResponse<Buffer> response, final Class<T> type) {
    try {
      return fromBuffer(response.bodyAsBuffer(), type);
    } catch (final Throwable throwable) {
      Logger.trace(throwable);
      return null;
    }
  }
public static < T extends Model > T fromResponse ( final HttpResponse < Buffer > response , final Class < T > type ) { try { return fromBuffer ( response . bodyAsBuffer ( ) , type ) ; } catch ( final Throwable throwable ) { Logger . trace ( throwable ) ; return null ; } }
Obtain the model associated to a {@link HttpResponse}.
Obtain the model associated to a { @link HttpResponse } .