diff --git a/stream_deck_plugin/ClipTrimDotNet/Player.cs b/stream_deck_plugin/ClipTrimDotNet/Player.cs index 3c83e9b..5e6254e 100644 --- a/stream_deck_plugin/ClipTrimDotNet/Player.cs +++ b/stream_deck_plugin/ClipTrimDotNet/Player.cs @@ -2,7 +2,7 @@ using BarRaider.SdTools.Wrappers; using ClipTrimDotNet.Client; using NAudio.CoreAudioApi.Interfaces; -using Newtonsoft.Json; +using System.Text.Json.Serialization; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; @@ -34,15 +34,15 @@ namespace ClipTrimDotNet } [FilenameProperty] - [JsonProperty(PropertyName = "path")] + [JsonPropertyName("path")] public string? Path { get; set; } - [JsonProperty(PropertyName = "index")] + [JsonPropertyName("index")] public int? Index { get; set; } - [JsonProperty(PropertyName = "playtype")] + [JsonPropertyName("playtype")] public string PlayType { get; set; } - [JsonProperty(PropertyName = "volume")] + [JsonPropertyName("volume")] public double Volume { get; set; } }