internal static ConversationPIIResultsConversationsItem DeserializeConversationPIIResultsConversationsItem(JsonElement element) { string id = default; IList <InputWarning> warnings = default; Optional <ConversationStatistics> statistics = default; IList <ConversationPIIItemResult> conversationItems = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) { id = property.Value.GetString(); continue; } if (property.NameEquals("warnings")) { List <InputWarning> array = new List <InputWarning>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(InputWarning.DeserializeInputWarning(item)); } warnings = array; continue; } if (property.NameEquals("statistics")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } statistics = ConversationStatistics.DeserializeConversationStatistics(property.Value); continue; } if (property.NameEquals("conversationItems")) { List <ConversationPIIItemResult> array = new List <ConversationPIIItemResult>(); foreach (var item in property.Value.EnumerateArray()) { array.Add(ConversationPIIItemResult.DeserializeConversationPIIItemResult(item)); } conversationItems = array; continue; } } return(new ConversationPIIResultsConversationsItem(conversationItems, id, warnings, statistics.Value)); }
internal SummaryResultConversationsItem(IList <ConversationsSummaryResultSummariesItem> summaries, string id, IList <InputWarning> warnings, ConversationStatistics statistics) : base(summaries) { Id = id; Warnings = warnings; Statistics = statistics; }
internal ConversationResultBase(string id, IList <InputWarning> warnings, ConversationStatistics statistics) { Id = id; Warnings = warnings; Statistics = statistics; }
internal ConversationPIIResultsConversationsItem(IList <ConversationPIIItemResult> conversationItems, string id, IList <InputWarning> warnings, ConversationStatistics statistics) : base(conversationItems) { Id = id; Warnings = warnings; Statistics = statistics; }