using System.Text.Json.Serialization; namespace EdgeInstaller; public sealed partial class Package { [JsonConstructor] // NOTE: without this it would be impossible to deserialise a Package private Package(string PackageName, Version Version, int Size, string SHA256, string Filename) { this.PackageName = PackageName; this.Version = Version; this.Size = Size; this.SHA256 = SHA256; this.Filename = Filename; } }