public static Type fromValue(final String value) {
      for (Type type : values()) {
        if (type.value.equalsIgnoreCase(value)) {
          return type;
        }
      }
      return UNKNOWN;
    }
Gets the type from a value string.

@param value the value string
@return the type
ethereum/ethstats/src/main/java/org/hyperledger/besu/ethstats/request/EthStatsRequest.java