/// <summary>
        /// Returns true if WorkingRestrictionDefaultLeaveHours instances are equal
        /// </summary>
        /// <param name="other">Instance of WorkingRestrictionDefaultLeaveHours to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(WorkingRestrictionDefaultLeaveHours other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     UseWorkingDay == other.UseWorkingDay ||
                     UseWorkingDay != null &&
                     UseWorkingDay.Equals(other.UseWorkingDay)
                     ) &&
                 (
                     MondayTime == other.MondayTime ||
                     MondayTime != null &&
                     MondayTime.Equals(other.MondayTime)
                 ) &&
                 (
                     TuesdayTime == other.TuesdayTime ||
                     TuesdayTime != null &&
                     TuesdayTime.Equals(other.TuesdayTime)
                 ) &&
                 (
                     WednesdayTime == other.WednesdayTime ||
                     WednesdayTime != null &&
                     WednesdayTime.Equals(other.WednesdayTime)
                 ) &&
                 (
                     FridayTime == other.FridayTime ||
                     FridayTime != null &&
                     FridayTime.Equals(other.FridayTime)
                 ) &&
                 (
                     SaturdayTime == other.SaturdayTime ||
                     SaturdayTime != null &&
                     SaturdayTime.Equals(other.SaturdayTime)
                 ) &&
                 (
                     SundayTime == other.SundayTime ||
                     SundayTime != null &&
                     SundayTime.Equals(other.SundayTime)
                 ));
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (UseWorkingDay != null)
         {
             hashCode = hashCode * 59 + UseWorkingDay.GetHashCode();
         }
         if (MondayTime != null)
         {
             hashCode = hashCode * 59 + MondayTime.GetHashCode();
         }
         if (TuesdayTime != null)
         {
             hashCode = hashCode * 59 + TuesdayTime.GetHashCode();
         }
         if (WednesdayTime != null)
         {
             hashCode = hashCode * 59 + WednesdayTime.GetHashCode();
         }
         if (FridayTime != null)
         {
             hashCode = hashCode * 59 + FridayTime.GetHashCode();
         }
         if (SaturdayTime != null)
         {
             hashCode = hashCode * 59 + SaturdayTime.GetHashCode();
         }
         if (SundayTime != null)
         {
             hashCode = hashCode * 59 + SundayTime.GetHashCode();
         }
         return(hashCode);
     }
 }