Parameter class

A parameter definition for skill inputs.

Constructors

Parameter({required String name, required ParameterType type, String? description, bool required = true, dynamic defaultValue, Map<String, dynamic> constraints = const {}, Map<String, dynamic>? metadata})
Parameter.fromJson(Map<String, dynamic> json)
Create from JSON.
factory

Properties

constraints → Map<String, dynamic>
Validation constraints.
final
defaultValue → dynamic
Default value.
final
description → String?
Parameter description.
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, dynamic>
Additional metadata.
final
name → String
Parameter name.
final
required → bool
Whether the parameter is required.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → ParameterType
Parameter type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert to JSON.
toString() → String
A string representation of this object.
override
validateConstraints(dynamic value) → List<String>
Validate constraints.
validateType(dynamic value) → String?
Validate value type.

Operators

operator ==(Object other) → bool
The equality operator.
inherited