MessagePush class

Push message over websockets. Readonly.

Annotations
  • @freezed

Constructors

MessagePush({@JsonKey(name: 'title') required String title, @JsonKey(name: 'subtitle') required String subtitle, @JsonKey(name: 'message') required String message, @JsonKey(name: 'icon_url') required String iconUrl, @JsonKey(name: 'click_action') required String clickAction, @JsonKey(name: 'tag') required String tag, @JsonKey(name: 'team') required String team, @JsonKey(name: 'sender') required String sender, @JsonKey(name: 'chat') required String chat, @JsonKey(name: 'message_id') required String messageId, @JsonKey(name: 'created') @DateTimeConverter() required DateTime created})
const
factory
MessagePush.fromJson(Map<String, dynamic> json)
factory

Properties

chat String
Chat id.
no setterinherited
clickAction String
Url opened on click.
no setterinherited
copyWith → $MessagePushCopyWith<MessagePush>
no setterinherited
created DateTime
Message creation iso datetime.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
iconUrl String
Absolute url to push icon.
no setterinherited
message String
Push body.
no setterinherited
messageId String
Message id.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender String
Sender contact id.
no setterinherited
subtitle String
Push subtitle.
no setterinherited
tag String
Push tag (for join pushes).
no setterinherited
team String
Team uid.
no setterinherited
title String
Push title.
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