public static Optional<ShapeType> fromString(String text) {
        for (ShapeType e : values()) {
            if (e.stringValue.equals(text)) {
                return Optional.of(e);
            }
        }

        return Optional.empty();
    }
Create a new Shape.Type from a string.

@param text Text to convert into a Shape.Type
@return Returns the Type in an Optional.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/ShapeType.java