using System.Runtime.Serialization; public abstract class BaseInstruction { [DataMember(IsRequired = true)] public string? type { get; set; } public abstract List GetInstructions(); }