diff --git a/ChatbotBuilderApi.Persistence/Configurations/Converters/DictionaryValueConverter.cs b/ChatbotBuilderApi.Persistence/Configurations/Converters/DictionaryValueConverter.cs index 0573474..65ebd06 100644 --- a/ChatbotBuilderApi.Persistence/Configurations/Converters/DictionaryValueConverter.cs +++ b/ChatbotBuilderApi.Persistence/Configurations/Converters/DictionaryValueConverter.cs @@ -10,6 +10,7 @@ namespace ChatbotBuilderApi.Persistence.Configurations.Converters; /// So you would need to call explicitly on the entity. /// public class DictionaryValueConverter : ValueConverter, string> + where TKey : notnull { public DictionaryValueConverter( JsonConverter? keyConverter = null, @@ -49,6 +50,7 @@ internal static JsonSerializerOptions CreateOptions( /// JSON converter for nullable dictionaries. /// public class NullableDictionaryValueConverter : ValueConverter?, string> + where TKey : notnull { public NullableDictionaryValueConverter( JsonConverter? keyConverter = null,