We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e51fce1 commit 07d98b2Copy full SHA for 07d98b2
‎Src/Notion.Client/Models/Page/IPageIcon.cs
@@ -1,7 +1,12 @@
1
-using Newtonsoft.Json;
+using JsonSubTypes;
2
+using Newtonsoft.Json;
3
4
namespace Notion.Client
5
{
6
+ [JsonConverter(typeof(JsonSubtypes), "type")]
7
+ [JsonSubtypes.KnownSubType(typeof(EmojiObject), "emoji")]
8
+ [JsonSubtypes.KnownSubType(typeof(FileObject), "file")]
9
+ [JsonSubtypes.KnownSubType(typeof(FileObject), "external")]
10
public interface IPageIcon
11
12
[JsonProperty("type")]
0 commit comments