Skip to content

Commit 773d38b

Browse files
committed
IObject.Object converter set to StringEnumConverter
1 parent 63ef92a commit 773d38b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Src/Notion.Client/Models/IObject.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using JsonSubTypes;
22
using Newtonsoft.Json;
3+
using Newtonsoft.Json.Converters;
34

45
namespace Notion.Client
56
{
@@ -11,6 +12,8 @@ namespace Notion.Client
1112
public interface IObject
1213
{
1314
string Id { get; set; }
15+
16+
[JsonConverter(typeof(StringEnumConverter))]
1417
ObjectType Object { get; }
1518
}
1619
}

0 commit comments

Comments
 (0)