Message class

A message to be shown in the message list

Annotations
  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)

Constructors

Message({String? id, MessageType type = MessageType.announcement, String? title, String? subTitle, String? message, String? url, String? image, DateTime? timestamp})
Create a new message.
Message.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
ID of the message.
getter/setter pair
image String?
The pathname for an image.
getter/setter pair
message String?
A longer detailed message.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subTitle String?
A short sub title.
getter/setter pair
timestamp DateTime
Creation timestamp.
getter/setter pair
title String?
A short title.
getter/setter pair
type MessageType
Type of message.
getter/setter pair
url String?
A URL to redirect the user to for an online item.
getter/setter pair

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