internal PnP.Framework.Entities.GroupEntity Convert()
        {
            var entity = new PnP.Framework.Entities.GroupEntity()
            {
                GroupId         = Id,
                DisplayName     = DisplayName,
                Description     = Description,
                MailNickname    = MailNickname,
                Mail            = Mail,
                MailEnabled     = MailEnabled,
                SecurityEnabled = SecurityEnabled,
                GroupTypes      = GroupTypes
            };

            return(entity);
        }
        internal static AzureADGroup CreateFrom(PnP.Framework.Entities.GroupEntity groupEntity)
        {
            var o = new AzureADGroup()
            {
                Id              = groupEntity.GroupId,
                DisplayName     = groupEntity.DisplayName,
                Description     = groupEntity.Description,
                MailNickname    = groupEntity.MailNickname,
                Mail            = groupEntity.Mail,
                MailEnabled     = groupEntity.MailEnabled,
                SecurityEnabled = groupEntity.SecurityEnabled,
                GroupTypes      = groupEntity.GroupTypes
            };

            return(o);
        }