def METHOD_NAME(cls, rdclass, rdtype, parser, origin=None):
    algorithm = parser.get_name(origin)
    inception, expiration, mode, error = parser.get_struct("!IIHH")
    key = parser.get_counted_bytes(2)
    other = parser.get_counted_bytes(2)
    return cls(
        rdclass, rdtype, algorithm, inception, expiration, mode, error, key, other
    )