ChatMessage class
Constructors
-
ChatMessage({required String role, required String content, List<
String> ? images}) - Creates a new instance of ChatMessage.
-
ChatMessage.fromJson(Map<
String, dynamic> json) -
Creates a new instance of
ChatMessage
from a json object.factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
ChatMessage
instance into a json format. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited