@Override
    public String toString() {
        // Inconsistent casing on string/boolean to preserve backwards compatibility in serialization
        switch (this) {
            case STRING:
                return "String";
            case BOOLEAN:
                return "Boolean";
            case STRING_ARRAY:
                return "stringArray";
            default:
                return "Unknown Type";
        }
    }
Creates a {@link ParameterType} of a specific type from the given ShapeType.

@param type the ShapeType to create from.
@return the created ParameterType.
@throws RuntimeException when the value would not create a valid ParameterType.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/parameters/ParameterType.java