ChatMessage class
<p>This class creates JSON code for chat message using the JsonSerializable package.</p>
Annotations
- @JsonSerializable(explicitToJson: true)
Constructors
ChatMessage (String? id, ChatUser? sender, String? messageContent, ChatUser? receiver)
ChatMessage.fromJson (Map<String, dynamic> json)
factory
Properties
hashCode → int
The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>
id ↔ String?
<span class="feature">read / write</span>
messageContent ↔ String?
<span class="feature">read / write</span>
receiver ↔ ChatUser?
<span class="feature">read / write</span>
runtimeType → Type
A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>
sender ↔ ChatUser?
<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>