Message class

Annotations
  • @JsonSerializable.new()

Constructors

Message({required String id, required String subject, required String body, required User fromUser, required User toUser, required User sendBy, required User sendTo, required DateTime sentAt, required bool isUnread, required MessageAttachment attachment})
Message.fromJson(Map<String, dynamic> json)
factory

Properties

attachment → MessageAttachment
final
body → String
final
fromUser → User
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
isUnread → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendBy → User
final
sendTo → User
final
sentAt → DateTime
final
subject → String
final
toUser → User
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.
override

Operators

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