using System.Text.Json.Serialization; namespace BLAIzor.Models { public class ChatGPTMethodResult : ChatGPTResultBase { [JsonConstructor] public ChatGPTMethodResult(string type, string text, string methodToCall, string? parameter = "") : base(type, text) { MethodToCall = methodToCall; Parameter = parameter; } [JsonPropertyName("methodToCall")] public string? MethodToCall { get; set; } [JsonPropertyName("parameter")] public string? Parameter { get; set; } } }