class ViewModel::Changes
def to_h
def to_h { 'changed_attributes' => changed_attributes.dup, 'changed_associations' => changed_associations.dup, 'new' => new?, 'changed_nested_children' => changed_nested_children?, 'changed_referenced_children' => changed_referenced_children?, 'deleted' => deleted?, } end