Parameter class

Represents intent parameters.

Constructors

Parameter({String name, @required String displayName, String value, String defaultValue, String entityTypeDisplayName, bool mandatory, List<String> prompts, bool isList})

Properties

defaultValue String
The default value to use when the value yields an empty result. Default values can be extracted from contexts by using the following syntax: #contextName.parameter_name.
final
displayName String
The name of the parameter.
final
entityTypeDisplayName String
The name of the entity type, prefixed with @, that describes values of the parameter. If the parameter is required, this must be provided.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isList bool
Indicates whether the parameter represents a list of values.
final
mandatory bool
Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
final
name String
The unique identifier of this parameter.
final
prompts List<String>
The collection of prompts that the agent can present to the user in order to collect value for the parameter.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value String
The definition of the parameter value. It can be: - a constant string, - a parameter value defined as $parameterName, - an original parameter value defined as $parameterName.original, - a parameter value from some context defined as #contextName.parameter_name.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromJson(Map<String, dynamic> json) Parameter