From 773d38b4d9dc3176ae86d1824c26a2e2ee37fb0e Mon Sep 17 00:00:00 2001 From: Daniil Teterin Date: Tue, 6 Jul 2021 15:42:07 +0300 Subject: [PATCH] IObject.Object converter set to StringEnumConverter --- Src/Notion.Client/Models/IObject.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Src/Notion.Client/Models/IObject.cs b/Src/Notion.Client/Models/IObject.cs index fa9afb00..18752767 100644 --- a/Src/Notion.Client/Models/IObject.cs +++ b/Src/Notion.Client/Models/IObject.cs @@ -1,5 +1,6 @@ using JsonSubTypes; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; namespace Notion.Client { @@ -11,6 +12,8 @@ namespace Notion.Client public interface IObject { string Id { get; set; } + + [JsonConverter(typeof(StringEnumConverter))] ObjectType Object { get; } } }