MessageDeltaObject class

Represents a message delta i.e. any changed fields on a message during streaming.

Annotations
  • @freezed

Constructors

MessageDeltaObject({required String id, required MessageDeltaObjectObject object, required MessageDelta delta})
Factory constructor for MessageDeltaObject
const
factory
MessageDeltaObject.fromJson(Map<String, dynamic> json)
Object construction from a JSON representation
factory

Properties

copyWith → $MessageDeltaObjectCopyWith<MessageDeltaObject>
Create a copy of MessageDeltaObject with the given fields replaced by the non-null parameter values.
no setterinherited
delta MessageDelta
The delta containing the fields that have changed on the Message.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The identifier of the message, which can be referenced in API endpoints.
no setterinherited
object MessageDeltaObjectObject
The object type, which is always thread.message.delta.
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 MessageDeltaObject 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