mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
19 lines
478 B
C#
19 lines
478 B
C#
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());
|
|
}
|
|
}
|
|
}
|