feat: create chat message
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using AnthropicClient.Json;
|
||||
|
||||
namespace AnthropicClient.Tests.Unit;
|
||||
|
||||
public class SerializationTest
|
||||
{
|
||||
private readonly JsonSerializerOptions _jsonSerializerOptions = JsonSerializationOptions.DefaultOptions;
|
||||
|
||||
protected string Serialize<T>(T obj) => JsonSerializer.Serialize(obj, _jsonSerializerOptions);
|
||||
|
||||
protected T? Deserialize<T>(string json) => JsonSerializer.Deserialize<T>(json, _jsonSerializerOptions);
|
||||
}
|
||||
Reference in New Issue
Block a user