public static ParameterType fromNode(StringNode node) throws RuleError {
        String value = node.getValue();
        if (value.equalsIgnoreCase("string")) {
            return STRING;
        }
        if (value.equalsIgnoreCase("boolean")) {
            return BOOLEAN;
        }
        if (value.equals("stringArray")) {
            return STRING_ARRAY;
        }
        throw new RuleError(new SourceException(
                String.format("Unexpected parameter type `%s`. Expected `string`, `boolean`, or `stringArray`.",
                        value),
                node));
    }
Creates a {@link ParameterType} of a specific type from the given Node information.

@param node the node to deserialize.
@return the created ParameterType.
@throws RuleError when the value is not a valid ParameterType.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/parameters/ParameterType.java