public bool DeepEquals(GetGroupsForMemberResponse?other)
 {
     return(other is not null &&
            AreAllMembershipsInactive.DeepEqualsDictionaryNaive(other.AreAllMembershipsInactive) &&
            Results.DeepEqualsList(other.Results) &&
            TotalResults == other.TotalResults &&
            HasMore == other.HasMore &&
            (Query is not null ? Query.DeepEquals(other.Query) : other.Query is null) &&
            ReplacementContinuationToken == other.ReplacementContinuationToken &&
            UseTotalResults == other.UseTotalResults);
 }
 public void Update(GetGroupsForMemberResponse?other)
 {
     if (other is null)
     {
         return;
     }
     if (!AreAllMembershipsInactive.DeepEqualsDictionaryNaive(other.AreAllMembershipsInactive))
     {
         AreAllMembershipsInactive = other.AreAllMembershipsInactive;
         OnPropertyChanged(nameof(AreAllMembershipsInactive));
     }
     if (!Results.DeepEqualsList(other.Results))
     {
         Results = other.Results;
         OnPropertyChanged(nameof(Results));
     }
     if (TotalResults != other.TotalResults)
     {
         TotalResults = other.TotalResults;
         OnPropertyChanged(nameof(TotalResults));
     }
     if (HasMore != other.HasMore)
     {
         HasMore = other.HasMore;
         OnPropertyChanged(nameof(HasMore));
     }
     if (!Query.DeepEquals(other.Query))
     {
         Query.Update(other.Query);
         OnPropertyChanged(nameof(Query));
     }
     if (ReplacementContinuationToken != other.ReplacementContinuationToken)
     {
         ReplacementContinuationToken = other.ReplacementContinuationToken;
         OnPropertyChanged(nameof(ReplacementContinuationToken));
     }
     if (UseTotalResults != other.UseTotalResults)
     {
         UseTotalResults = other.UseTotalResults;
         OnPropertyChanged(nameof(UseTotalResults));
     }
 }
        public bool Equals(GetGroupsForMemberResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     AreAllMembershipsInactive == input.AreAllMembershipsInactive ||
                     (AreAllMembershipsInactive != null && AreAllMembershipsInactive.SequenceEqual(input.AreAllMembershipsInactive))
                     ) &&
                 (
                     Results == input.Results ||
                     (Results != null && Results.SequenceEqual(input.Results))
                 ) &&
                 (
                     TotalResults == input.TotalResults ||
                     (TotalResults.Equals(input.TotalResults))
                 ) &&
                 (
                     HasMore == input.HasMore ||
                     (HasMore != null && HasMore.Equals(input.HasMore))
                 ) &&
                 (
                     Query == input.Query ||
                     (Query != null && Query.Equals(input.Query))
                 ) &&
                 (
                     ReplacementContinuationToken == input.ReplacementContinuationToken ||
                     (ReplacementContinuationToken != null && ReplacementContinuationToken.Equals(input.ReplacementContinuationToken))
                 ) &&
                 (
                     UseTotalResults == input.UseTotalResults ||
                     (UseTotalResults != null && UseTotalResults.Equals(input.UseTotalResults))
                 ));
        }