mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +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;
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
||||
IncludeFields = true)]
|
||||
[JsonSerializable(typeof(ResumeJson))]
|
||||
public partial class ResumeJsonContext : JsonSerializerContext {}
|
||||
|
||||
public class ResumeJson
|
||||
{
|
||||
[JsonPropertyName("AaruResume")]
|
||||
public Resume Resume { get; init; }
|
||||
public Resume Resume { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Information that allows to resume a dump</summary>
|
||||
|
||||
Reference in New Issue
Block a user