using System.Text.Json.Serialization; using Elsa.Api.Client.Contracts; namespace Elsa.Api.Client.Expressions; /// /// Represents an object expression formatted as a string value. /// public class ObjectExpression : IExpression { /// /// Initializes a new instance of the class. /// [JsonConstructor] public ObjectExpression() { } /// /// Initializes a new instance of the class. /// public ObjectExpression(string? value) { Value = value; } /// /// The literal value. /// public string? Value { get; set; } /// /// Returns the string representation of the expression. /// public override string ToString() => Value ?? ""; }