public static TransactionType of(final int serializedTypeValue) {
    return Arrays.stream(
            new TransactionType[] {
              TransactionType.FRONTIER,
              TransactionType.ACCESS_LIST,
              TransactionType.EIP1559,
              TransactionType.BLOB,
              TransactionType.DELEGATE_CODE
            })
        .filter(transactionType -> transactionType.typeValue == serializedTypeValue)
        .findFirst()
        .orElseThrow(
            () ->
                new IllegalArgumentException(
                    String.format("Unsupported transaction type %x", serializedTypeValue)));
  }
Convert TransactionType from int serialized type value.

@param serializedTypeValue the serialized type value
@return the transaction type
datatypes/src/main/java/org/hyperledger/besu/datatypes/TransactionType.java