Part class

Represents a part of a training phrase.

Constructors

Part({@required String text, String entityType, String alias, bool userDefined})

Properties

alias String
The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
final
entityType String
The entity type name prefixed with @. This field is required for annotated parts of the training phrase.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
text String
The text for this part.
final
userDefined bool
Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.
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) Part