Save and load report PDF data to json

This commit is contained in:
2026-02-16 18:39:19 +09:00
parent 833e97fbea
commit b4d09c0d8b
5 changed files with 131 additions and 30 deletions
+18
View File
@@ -0,0 +1,18 @@
using System.Text.Json;
using System.Text.Json.Serialization;
namespace ReceiptPDFBuilders.Helpers;
class Utilities
{
public static JsonSerializerOptions GetSerializerOptions()
{
var opts = new JsonSerializerOptions
{
WriteIndented = false,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
};
return opts;
}
}