ChatMessage.fromString constructor

ChatMessage.fromString(
  1. String payload
)

Implementation

factory ChatMessage.fromString(String payload) =>
    ChatMessage.fromJson(json.decode(payload));