From 25e73039bf85cf5376036a774fd70bc836eb20d2 Mon Sep 17 00:00:00 2001 From: Sandra Rodgers Date: Thu, 29 Jun 2023 18:22:26 -0500 Subject: [PATCH] adds NullValueHandling to ignore response null values --- Deepgram/Transcription/PrerecordedTranscriptionResult.cs | 2 +- Deepgram/Transcription/Summary.cs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Deepgram/Transcription/PrerecordedTranscriptionResult.cs b/Deepgram/Transcription/PrerecordedTranscriptionResult.cs index 8b1ffdfa..16faaed1 100644 --- a/Deepgram/Transcription/PrerecordedTranscriptionResult.cs +++ b/Deepgram/Transcription/PrerecordedTranscriptionResult.cs @@ -20,7 +20,7 @@ public class PrerecordedTranscriptionResult /// /// Summary of Transcription. /// - [JsonProperty("summary")] + [JsonProperty("summary", NullValueHandling=NullValueHandling.Ignore)] public Summary Summary { get; set; } } } diff --git a/Deepgram/Transcription/Summary.cs b/Deepgram/Transcription/Summary.cs index 74b1c8ae..7a149e50 100644 --- a/Deepgram/Transcription/Summary.cs +++ b/Deepgram/Transcription/Summary.cs @@ -8,7 +8,7 @@ public class Summary /// /// Summary of a section of the transcript /// - [JsonProperty("summary")] + [JsonProperty("summary", NullValueHandling=NullValueHandling.Ignore)] public string TextSummary { get; set; } /// @@ -26,8 +26,10 @@ public class Summary /// /// Array of Channel objects. /// - [JsonProperty("short")] + [JsonProperty("short", NullValueHandling=NullValueHandling.Ignore)] public string Short { get; set; } } } + +