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

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     RentalAgreement == other.RentalAgreement ||
                     RentalAgreement != null &&
                     RentalAgreement.Equals(other.RentalAgreement)
                 ) &&
                 (
                     ConditionName == other.ConditionName ||
                     ConditionName != null &&
                     ConditionName.Equals(other.ConditionName)
                 ) &&
                 (
                     Comment == other.Comment ||
                     Comment != null &&
                     Comment.Equals(other.Comment)
                 ));
        }
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();

                if (RentalAgreement != null)
                {
                    hash = hash * 59 + RentalAgreement.GetHashCode();
                }

                if (ConditionName != null)
                {
                    hash = hash * 59 + ConditionName.GetHashCode();
                }

                if (Comment != null)
                {
                    hash = hash * 59 + Comment.GetHashCode();
                }

                return(hash);
            }
        }
 public Condition(ConditionName conditionName)
 {
     Name = conditionName.ToString();
 }