mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use source generator for resume JSON serializing.
This commit is contained in:
@@ -44,10 +44,15 @@ using Aaru.CommonTypes.AaruMetadata;
|
|||||||
|
|
||||||
namespace Aaru.CommonTypes.Metadata;
|
namespace Aaru.CommonTypes.Metadata;
|
||||||
|
|
||||||
|
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
||||||
|
IncludeFields = true)]
|
||||||
|
[JsonSerializable(typeof(ResumeJson))]
|
||||||
|
public partial class ResumeJsonContext : JsonSerializerContext {}
|
||||||
|
|
||||||
public class ResumeJson
|
public class ResumeJson
|
||||||
{
|
{
|
||||||
[JsonPropertyName("AaruResume")]
|
[JsonPropertyName("AaruResume")]
|
||||||
public Resume Resume { get; init; }
|
public Resume Resume { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Information that allows to resume a dump</summary>
|
/// <summary>Information that allows to resume a dump</summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user