StaticSiteCustomDomainOverviewARMResource IOperationSource <StaticSiteCustomDomainOverviewARMResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = StaticSiteCustomDomainOverviewARMResourceData.DeserializeStaticSiteCustomDomainOverviewARMResourceData(document.RootElement);

            return(new StaticSiteCustomDomainOverviewARMResource(_armClient, data));
        }
        internal static StaticSiteCustomDomainOverviewCollection DeserializeStaticSiteCustomDomainOverviewCollection(JsonElement element)
        {
            IReadOnlyList <StaticSiteCustomDomainOverviewARMResourceData> value = default;
            Optional <string> nextLink = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("value"))
                {
                    List <StaticSiteCustomDomainOverviewARMResourceData> array = new List <StaticSiteCustomDomainOverviewARMResourceData>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(StaticSiteCustomDomainOverviewARMResourceData.DeserializeStaticSiteCustomDomainOverviewARMResourceData(item));
                    }
                    value = array;
                    continue;
                }
                if (property.NameEquals("nextLink"))
                {
                    nextLink = property.Value.GetString();
                    continue;
                }
            }
            return(new StaticSiteCustomDomainOverviewCollection(value, nextLink.Value));
        }