/// <summary> /// Returns true if BrandedFoodObjectDietLabels instances are equal /// </summary> /// <param name="other">Instance of BrandedFoodObjectDietLabels to be compared</param> /// <returns>Boolean</returns> public bool Equals(BrandedFoodObjectDietLabels other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Vegan == other.Vegan || Vegan != null && Vegan.Equals(other.Vegan) ) && ( Vegetarian == other.Vegetarian || Vegetarian != null && Vegetarian.Equals(other.Vegetarian) ) && ( GlutenFree == other.GlutenFree || GlutenFree != null && GlutenFree.Equals(other.GlutenFree) )); }