SyniServiceMessage class
One message in a Syni service session.
- Annotations
Constructors
-
SyniServiceMessage({String? id, required String role, required String content, DateTime? createdAt, required Map<
String, dynamic> raw}) -
const
-
SyniServiceMessage.fromJson(Map<
String, dynamic> json) -
factory
Properties
- content → String
-
final
- createdAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
final
- isUser → bool
-
no setter
-
raw
→ Map<
String, dynamic> -
final
- role → String
-
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited