mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Switch from System.Text.Json to Newtonsoft, typify the BTCPayServer.Client
This commit is contained in:
18
BTCPayServer.Client/Serializer.cs
Normal file
18
BTCPayServer.Client/Serializer.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using BTCPayServer.Client.JsonConverters;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Client
|
||||
{
|
||||
public class Serializer
|
||||
{
|
||||
public static void RegisterConverters(JsonSerializerSettings settings)
|
||||
{
|
||||
if (settings == null)
|
||||
throw new ArgumentNullException(nameof(settings));
|
||||
settings.Converters.Add(new PermissionJsonConverter());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user