def METHOD_NAME(cls, instance, **kwargs):
    changes = {}
    instance_details = inspect(instance)
    for attr in instance_details.attrs:
        history = instance_details.get_history(attr.key, True)
        if not history.has_changes():
            continue
        changes[attr.key] = (
            history.deleted[0] if history.deleted else None,
            history.added[0] if history.added else None,
        )
    return cls(
        model=instance.__class__.__name__,
        id=instance.id,
        changes=changes,
        **kwargs,
    )