Skip to content

Commit cd9e06d

Browse files
author
Alisa Semenova
committed
Vibrancy serialization fix
1 parent 30941df commit cd9e06d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ElectronNET.API/Entities/Vibrancy.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Newtonsoft.Json;
1+
using System.Runtime.Serialization;
22

33
namespace ElectronNET.API.Entities
44
{
@@ -10,7 +10,7 @@ public enum Vibrancy
1010
/// <summary>
1111
/// The appearance based
1212
/// </summary>
13-
[JsonProperty("appearance-based")]
13+
[EnumMember(Value = "appearance-based")]
1414
appearanceBased,
1515

1616
/// <summary>
@@ -51,13 +51,13 @@ public enum Vibrancy
5151
/// <summary>
5252
/// The medium light
5353
/// </summary>
54-
[JsonProperty("medium-light")]
54+
[EnumMember(Value = "medium-light")]
5555
mediumLight,
5656

5757
/// <summary>
5858
/// The ultra dark
5959
/// </summary>
60-
[JsonProperty("ultra-dark")]
60+
[EnumMember(Value = "ultra-dark")]
6161
ultraDark
6262
}
6363
}

0 commit comments

Comments
 (0)