namespace Elsa.JavaScript.Models;
///
/// A method parameter definition.
///
public class ParameterDefinition
{
///
/// Constructor.
///
public ParameterDefinition()
{
}
///
/// Constructor.
///
public ParameterDefinition(string name, string? type, bool isOptional = false)
{
Name = name;
Type = type;
IsOptional = isOptional;
}
///
/// The name of the parameter.
///
public string Name { get; set; } = default!;
///
/// The type name of the parameter.
///
public string? Type { get; set; }
///
/// A value indicating whether the parameter is optional or not.
///
public bool IsOptional { get; set; }
}