internal static AppServiceCertificateOrderCollection DeserializeAppServiceCertificateOrderCollection(JsonElement element)
        {
            IReadOnlyList <AppServiceCertificateOrderData> value = default;
            Optional <string> nextLink = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("value"))
                {
                    List <AppServiceCertificateOrderData> array = new List <AppServiceCertificateOrderData>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(item));
                    }
                    value = array;
                    continue;
                }
                if (property.NameEquals("nextLink"))
                {
                    nextLink = property.Value.GetString();
                    continue;
                }
            }
            return(new AppServiceCertificateOrderCollection(value, nextLink.Value));
        }
        AppServiceCertificateOrder IOperationSource <AppServiceCertificateOrder> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = AppServiceCertificateOrderData.DeserializeAppServiceCertificateOrderData(document.RootElement);

            return(new AppServiceCertificateOrder(_armClient, data));
        }