model/src/main/java/eu/internetofus/common/model/Model.java
/**
   * Return the model defined on the buffer.
   *
   * @param buffer to get the models.
   * @param type   of model to obtain
   * @param <T>    to obtain
   *
   * @return the models of the array, or {@code null} if it can not obtain all the
   *         models.
   */
Return the model defined on the buffer.
@param buffer to get the models.
@param type   of model to obtain
@param     to obtain

@return the models of the array, or  null if it can not obtain all the
models.
Return the model defined on the buffer . @param buffer to get the models . @param type of model to obtain @param to obtain @return the models of the array or null if it can not obtain all the models .
public static <T> List<T> fromJsonArray(final Buffer buffer, final Class<T> type) {
    if (buffer != null) {
      try {
        final var decoded = Json.decodeValue(buffer);
        if (decoded instanceof JsonArray) {
          final var array = (JsonArray) decoded;
          return fromJsonArray(array, type);
        }
      } catch (final Throwable throwable) {
        Logger.trace(throwable);
      }
    }
    return null;
  }
public static < T > List < T > fromJsonArray ( final Buffer buffer , final Class < T > type ) { if ( buffer != null ) { try { final var decoded = Json . decodeValue ( buffer ) ; if ( decoded instanceof JsonArray ) { final var array = ( JsonArray ) decoded ; return fromJsonArray ( array , type ) ; } } catch ( final Throwable throwable ) { Logger . trace ( throwable ) ; } } return null ; }
Return the model defined on the buffer.
Return the model defined on the buffer .