Skip to main content

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 :::

[id] [↔ String?]

: ::: features getter/setter pair :::

[messageContent] [↔ String?]

: ::: features getter/setter pair :::

[receiver] [↔ ChatUser?]

: ::: features getter/setter pair :::

[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::

[sender] [↔ ChatUser?]

: ::: 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 :::

  1. talawa
  2. chat_message
  3. ChatMessage class
chat_message library