SjMessageDto class

Данные cообщения получаемые с api urls.apiMsgsGet.

Annotations
  • @immutable

Constructors

SjMessageDto({required int id, required int chatId, required int userId, required String? text, required List<String>? images, required int? replyId, required List<double>? geopoint, required Map<String, dynamic>? payload, required DateTime created, required DateTime updated, required bool isHidden, required DateTime? blocked, required String? blockReason})
Данные cообщения получаемые с api urls.apiMsgsGet.
const
SjMessageDto.fromJson(Map map)

Properties

blocked DateTime?
Дата когда данные были заблокированы.
finalinherited
blockReason String?
Причина блокировки.
finalinherited
chatId int
Уникальный айди чата сообщения.
final
created DateTime
Дата создания данныех.
finalinherited
geopoint List<double>?
Данные геометки.
final
hashCode int
The hash code for this object.
no setterinherited
id int
Уникальный айди сообщения.
final
images List<String>?
Ссылки на прикрепленные фотографии.
final
isBlocked bool
Заблокированы ли данные.
no setterinherited
isHidden bool
Скрыты ли данные.
finalinherited
payload Map<String, dynamic>?
Произвольные JSON данные пользователей связанные с сообщением.
final
replyId int?
Айди сообщения на который был произведен ответ.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
Текст сообщения. Да он может отсутсвовать.
final
updated DateTime
Дата последнего обновления данных.
finalinherited
userId int
Уникальный айди пользователя оставивший сообщение.
final

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.
inherited

Operators

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