using BotSharp.Abstraction.Repositories.Models; namespace BotSharp.Abstraction.Conversations.Models; public class ConversationState : Dictionary { public ConversationState() { } public ConversationState(List pairs) { foreach (var pair in pairs) { this[pair.Key] = pair.Value; } } public List ToKeyValueList() { return this.Select(x => new KeyValueModel(x.Key, x.Value)).ToList(); } }