using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.ComponentModel; namespace ModpackUpdater; public class UpdateAction : InstallAction { [JsonConverter(typeof(StringEnumConverter))] [DefaultValue(UpdateActionType.Update)] public UpdateActionType Type { get; set; } [DefaultValue(null)] public string SrcPath { get; set; } [DefaultValue(false)] public bool IsDirectory { get; set; } [DefaultValue(null)] public string InheritFrom { get; set; } }