26 lines
924 B
C#
26 lines
924 B
C#
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Serialization;
|
|
|
|
namespace EnvelopeGenerator.Domain.Constants
|
|
{
|
|
public class Format
|
|
{
|
|
#region Json Serializer Settings
|
|
public static class Json
|
|
{
|
|
public static readonly JsonSerializerSettings ForDiagnostics = new JsonSerializerSettings()
|
|
{
|
|
ContractResolver = new CamelCasePropertyNamesContractResolver(),
|
|
Formatting = Formatting.Indented,
|
|
NullValueHandling = NullValueHandling.Include
|
|
};
|
|
public static readonly JsonSerializerSettings ForAnnotations = new JsonSerializerSettings()
|
|
{
|
|
ContractResolver = new CamelCasePropertyNamesContractResolver(),
|
|
Formatting = Formatting.None,
|
|
NullValueHandling = NullValueHandling.Ignore
|
|
};
|
|
}
|
|
#endregion
|
|
}
|
|
} |