using System.Collections.Generic; public class ScriptAction { public string Type { get; set; } public Dictionary Params { get; set; } = new Dictionary(); public List> Choices { get; set; } public string GetParam(string key, string defaultValue = "") { return Params.ContainsKey(key) ? Params[key].ToString() : defaultValue; } }