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

content String
final
hashCode int
The hash code for this object.
no setterinherited
images List<String>?
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
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