Exemple #1
0
        internal static SupportedFileFormats DeserializeSupportedFileFormats(JsonElement element)
        {
            IReadOnlyList <FileFormat> value = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("value"))
                {
                    List <FileFormat> array = new List <FileFormat>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(FileFormat.DeserializeFileFormat(item));
                    }
                    value = array;
                    continue;
                }
            }
            return(new SupportedFileFormats(value));
        }