Skip to main content

ChatMessage class

<p>This class creates JSON code for chat message using the JsonSerializable package.</p>

Annotations

Constructors

ChatMessage (String? id, ChatUser? sender, String? messageContent, ChatUser? receiver)

ChatMessage.fromJson (Map<String, dynamic> json)

factory

Properties

hashCodeint

The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>

idString?

<span class="feature">read / write</span>

messageContentString?

<span class="feature">read / write</span>

receiverChatUser?

<span class="feature">read / write</span>

runtimeTypeType

A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>

senderChatUser?

<span class="feature">read / write</span>

Methods

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>

toJson() Map<String, dynamic>
toString() String

A string representation of this object.
<span class="feature">inherited</span>

Operators

operator ==(Object other) bool

The equality operator.
<span class="feature">inherited</span>