public override int GetHashCode()
        {
            int hashCode = -1142174100;

            if (ModifierId != null)
            {
                hashCode += ModifierId.GetHashCode();
            }

            if (OnByDefault != null)
            {
                hashCode += OnByDefault.GetHashCode();
            }

            return(hashCode);
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is CatalogModifierOverride other &&
                   ((ModifierId == null && other.ModifierId == null) || (ModifierId?.Equals(other.ModifierId) == true)) &&
                   ((OnByDefault == null && other.OnByDefault == null) || (OnByDefault?.Equals(other.OnByDefault) == true)));
        }