ShortMessage class

Short message based on chat message.

Annotations
  • @freezed

Constructors

ShortMessage({@JsonKey(name: 'from') required String from, @JsonKey(name: 'to') required String to, @JsonKey(name: 'message_id') required String messageId, @JsonKey(name: 'created') @DateTimeConverter() required DateTime created, @JsonKey(name: 'gentime') required int gentime, @JsonKey(name: 'chat_type') required String chatType, @JsonKey(name: 'chat') required String chat, @Default(false) @JsonKey(name: 'is_archive') bool? isArchive})
const
factory
ShortMessage.fromJson(Map<String, dynamic> json)
factory

Properties

chat String
Chat id.
no setterinherited
chatType String
Chat type.
no setterinherited
copyWith → $ShortMessageCopyWith<ShortMessage>
no setterinherited
created DateTime
Message creation datetime (set by server side) or sending datetime in future for draft messages.
no setterinherited
from String
Sender contact id.
no setterinherited
gentime int
Object version.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isArchive bool?
This message is archive. True or null.
no setterinherited
messageId String
Message uid.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to String
Recipient id (group, task or contact).
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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