BotSharp/src/Infrastructure/BotSharp.Abstraction/Models/KeyValue.cs
2025-03-09 22:21:34 -05:00

30 lines
593 B
C#

namespace BotSharp.Abstraction.Models;
public class KeyValue
{
[JsonPropertyName("key")]
public string Key { get; set; } = string.Empty;
[JsonPropertyName("value")]
public string? Value { get; set; }
public override string ToString()
{
return $"Key: {Key}, Value: {Value}";
}
}
public class KeyValue<T>
{
[JsonPropertyName("key")]
public string Key { get; set; } = string.Empty;
[JsonPropertyName("value")]
public T? Value { get; set; }
public override string ToString()
{
return $"Key: {Key}, Value: {Value}";
}
}