@classmethod
def from_body(cls, packet_body):
    """Return a packet object from a packet body."""
    params = {}
    for (attrib_name, attrib_type), value in zip(cls.attributes, packet_body):
        params[attrib_name] = value
    return cls(**params)
