ChatMessage class
This class creates JSON code for chat message using the JsonSerializable package.
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. ::: features no setterinherited :::
: ::: features getter/setter pair :::
[messageContent] [↔ String?]
: ::: features getter/setter pair :::
: ::: features getter/setter pair :::
[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::
: ::: features getter/setter pair :::
Methods
[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features inherited :::
[toJson][ [→ Map[<[String], dynamic>]] ]
:
[toString][ [→ String] ] : A string representation of this object. ::: features inherited :::
Operators
[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::
- talawa
- chat_message
- ChatMessage class