示例#1
0
        internal static CloudErrorAutoGenerated2 DeserializeCloudErrorAutoGenerated2(JsonElement element)
        {
            Optional <CloudErrorBodyAutoGenerated2> error = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("error"))
                {
                    error = CloudErrorBodyAutoGenerated2.DeserializeCloudErrorBodyAutoGenerated2(property.Value);
                    continue;
                }
            }
            return(new CloudErrorAutoGenerated2(error.Value));
        }
示例#2
0
        internal static CloudErrorAutoGenerated2 DeserializeCloudErrorAutoGenerated2(JsonElement element)
        {
            CloudErrorBodyAutoGenerated2 error = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("error"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    error = CloudErrorBodyAutoGenerated2.DeserializeCloudErrorBodyAutoGenerated2(property.Value);
                    continue;
                }
            }
            return(new CloudErrorAutoGenerated2(error));
        }