public BooleanNode expectBooleanMember(String name) {
        return expectMember(name)
                .expectBooleanNode(() -> format("Expected `%s` member to be a boolean, but found {type}.", name));
    }
Gets a member and requires it to be a boolean.

@param name Name of the member to get.
@return Returns the node with the given member name.
@throws ExpectationNotMetException when not present or not a boolean.
smithy-model/src/main/java/software/amazon/smithy/model/node/ObjectNode.java