Message class

Inheritance
Annotations

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
@JsonKey(nullable: false), final
body String
@JsonKey(nullable: false), final
fromUser User
@JsonKey(nullable: false), final
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
@JsonKey(nullable: false), final
isUnread bool
@JsonKey(nullable: false), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sendBy User
@JsonKey(nullable: false), final
sendTo User
@JsonKey(nullable: false), final
sentAt DateTime
@JsonKey(nullable: false), final
subject String
@JsonKey(nullable: false), final
toUser User
@JsonKey(nullable: false), final

Methods

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

Operators

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