UserPersona class

Defines a reusable user persona composed of multiple behaviors.

Constructors

UserPersona({required String id, required String description, List<UserBehavior>? behaviors})
Creates a user persona.
UserPersona.fromJson(EvalJson json)
Decodes a persona from JSON.
factory

Properties

behaviors → List<UserBehavior>
Behavior definitions included in this persona.
final
description → String
Persona description.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Persona identifier.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → EvalJson
Encodes this persona for persistence.
toString() → String
A string representation of this object.
inherited

Operators

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