protected override void ProcessRecord()
        {
            var scope = new Scope()
            {
                Claims                  = Claims,
                ClaimsRule              = ClaimsRule,
                Description             = Description,
                DisplayName             = DisplayName,
                Emphasize               = Emphasize.GetValueOrDefault(DefaultValues.Emphasize),
                Enabled                 = Enabled.GetValueOrDefault(DefaultValues.Enabled),
                IncludeAllClaimsForUser =
                    IncludeAllClaimsForUser.GetValueOrDefault(DefaultValues.IncludeAllClaimsForUser),
                Name     = Name,
                Required = Required.GetValueOrDefault(DefaultValues.Required),
                ShowInDiscoveryDocument =
                    ShowInDiscoveryDocument.GetValueOrDefault(DefaultValues.ShowInDiscoveryDocument),
                Type = Type.GetValueOrDefault(DefaultValues.Type)
            };

            WriteObject(scope);
        }
        protected override void ProcessRecord()
        {
            var scope = new Scope()
            {
                Claims                  = (Claims ?? new ScopeClaim[] {}).ToList(),
                ClaimsRule              = ClaimsRule,
                Description             = Description,
                DisplayName             = DisplayName,
                Emphasize               = Emphasize.GetValueOrDefault(DefaultValues.Emphasize),
                Enabled                 = Enabled.GetValueOrDefault(DefaultValues.Enabled),
                IncludeAllClaimsForUser =
                    IncludeAllClaimsForUser.GetValueOrDefault(DefaultValues.IncludeAllClaimsForUser),
                Name     = Name,
                Required = Required.GetValueOrDefault(DefaultValues.Required),
                ShowInDiscoveryDocument =
                    ShowInDiscoveryDocument.GetValueOrDefault(DefaultValues.ShowInDiscoveryDocument),
                Type = Type.GetValueOrDefault(DefaultValues.Type),
                AllowUnrestrictedIntrospection = AllowUnrestrictedIntrospection.GetValueOrDefault(DefaultValues.AllowUnrestrictedIntrospection),
                ScopeSecrets = (ScopeSecrets ?? new Secret[] { }).ToList()
            };

            WriteObject(scope);
        }