MessageDelta class

The delta containing the fields that have changed on the Message.

Annotations
  • @freezed

Constructors

MessageDelta.new({@JsonKey(includeIfNull: false, unknownEnumValue: JsonKey.nullForUndefinedEnumValue) MessageRole? role, @JsonKey(includeIfNull: false) List<MessageDeltaContent>? content})
Factory constructor for MessageDelta
const
factory
MessageDelta.fromJson(Map<String, dynamic> json)
Object construction from a JSON representation
factory

Properties

content List<MessageDeltaContent>?
The content of the message in array of text and/or images.
no setterinherited
copyWith → $MessageDeltaCopyWith<MessageDelta>
Create a copy of MessageDelta with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
role MessageRole?
The entity that produced the message. One of user or assistant.
no setterinherited
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>
Serializes this MessageDelta to a JSON map.
inherited
toMap() Map<String, dynamic>
Map representation of object (not serialized)
toString() String
A string representation of this object.
inherited
validateSchema() String?
Perform validations on the schema property values

Operators

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

Constants

propertyNames → const List<String>
List of all property names of schema