public static PathMatcher fromNode(Node node) {
        ObjectNode value = node.expectObjectNode().warnIfAdditionalProperties(KEYS);
        return new PathMatcher(value.expectStringMember(PATH).getValue(),
                value.expectStringMember(EXPECTED).getValue(),
                PathComparator.fromNode(value.expectStringMember(COMPARATOR)));
    }
Creates a new instance from a {@link Node}.

@param node Node tom create the PathMatcher from.
@return Returns the created PathMatcher.
@throws ExpectationNotMetException if the given Node is invalid.
smithy-waiters/src/main/java/software/amazon/smithy/waiters/PathMatcher.java