using System.Text.Json.Serialization;
using Elsa.Api.Client.Contracts;
namespace Elsa.Api.Client.Expressions;
///
/// Represents a C# expression.
///
public class CSharpExpression : IExpression
{
///
/// Initializes a new instance of the class.
///
[JsonConstructor]
public CSharpExpression()
{
}
///
/// Initializes a new instance of the class.
///
/// The C# expression.
public CSharpExpression(string value)
{
Value = value;
}
///
/// Gets or sets the C# expression.
///
public string? Value { get; set; }
///
/// Returns the C# expression.
///
public override string ToString() => Value ?? "";
}