internal static CloudErrorAutoGenerated DeserializeCloudErrorAutoGenerated(JsonElement element) { Optional <CloudErrorBodyAutoGenerated> error = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("error")) { error = CloudErrorBodyAutoGenerated.DeserializeCloudErrorBodyAutoGenerated(property.Value); continue; } } return(new CloudErrorAutoGenerated(error.Value)); }
internal static CloudErrorAutoGenerated DeserializeCloudErrorAutoGenerated(JsonElement element) { CloudErrorBodyAutoGenerated error = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("error")) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } error = CloudErrorBodyAutoGenerated.DeserializeCloudErrorBodyAutoGenerated(property.Value); continue; } } return(new CloudErrorAutoGenerated(error)); }