Exemple #1
0
        internal static ConfigurationServiceSettings DeserializeConfigurationServiceSettings(JsonElement element)
        {
            Optional <ConfigurationServiceGitProperty> gitProperty = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("gitProperty"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    gitProperty = ConfigurationServiceGitProperty.DeserializeConfigurationServiceGitProperty(property.Value);
                    continue;
                }
            }
            return(new ConfigurationServiceSettings(gitProperty.Value));
        }
Exemple #2
0
 internal ConfigurationServiceSettings(ConfigurationServiceGitProperty gitProperty)
 {
     GitProperty = gitProperty;
 }