@classmethod
def from_unknown_key(cls, key, cls_ref):
    """
        Compile time error. Not allowed to pass a key to DO that was not declared in restrictions.
        """
    return cls("%s: Unexpected key '%s' in data." % (cls_ref.__name__, key))
