Validate an exametrika object and return the matched model class
Source:R/utils-internal.R
dot-validate_exametrika.RdInternal validation used by all plot functions. The object must inherit
from "exametrika" and carry at least one of the model classes in
valid_classes. Using %in% on class(data) against
the candidate set (and not the other way around) keeps the check robust
when the parent package adds extra classes to its outputs.