SaveMessageRequest class
Constructors
-
SaveMessageRequest({required String role, required String content, Map<
String, Object> metadata = const {}}) - Returns a new SaveMessageRequest instance.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → SaveMessageRequest? -
Returns a new SaveMessageRequest instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< SaveMessageRequest> -
mapFromJson(
dynamic json) → Map< String, SaveMessageRequest> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< SaveMessageRequest> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.