18 lines
473 B
C#
18 lines
473 B
C#
|
|
using System.Text.Json.Serialization;
|
|||
|
|
|
|||
|
|
namespace Discovery.Loader.Models;
|
|||
|
|
|
|||
|
|
[JsonSourceGenerationOptions(PropertyNameCaseInsensitive = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)]
|
|||
|
|
[JsonSerializable(typeof(Update))]
|
|||
|
|
public partial class UpdateContext : JsonSerializerContext
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class Update
|
|||
|
|
{
|
|||
|
|
[JsonPropertyName("version")]
|
|||
|
|
public string? Version { get; set; }
|
|||
|
|
|
|||
|
|
[JsonPropertyName("link")]
|
|||
|
|
public string? Link { get; set; }
|
|||
|
|
}
|