Skip to content

Commit 07d98b2

Browse files
Fix IPageIcon parsing 🚑
1 parent e51fce1 commit 07d98b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎Src/Notion.Client/Models/Page/IPageIcon.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
using Newtonsoft.Json;
1+
using JsonSubTypes;
2+
using Newtonsoft.Json;
23

34
namespace Notion.Client
45
{
6+
[JsonConverter(typeof(JsonSubtypes), "type")]
7+
[JsonSubtypes.KnownSubType(typeof(EmojiObject), "emoji")]
8+
[JsonSubtypes.KnownSubType(typeof(FileObject), "file")]
9+
[JsonSubtypes.KnownSubType(typeof(FileObject), "external")]
510
public interface IPageIcon
611
{
712
[JsonProperty("type")]

0 commit comments

Comments
 (0)