ChatMessage.fromJSON constructor

ChatMessage.fromJSON(
  1. Map<String, dynamic> json
)

Implementation

ChatMessage.fromJSON(Map<String, dynamic> json)
    : id = json['id'],
      text = json['text'],
      author = User.fromJSON(json['author']),
      attachments = Utils.createList(json['attachments'],
          (jsonMap) => MediaAttachment.fromJSON(jsonMap)),
      properties = Utils.createStringStringMap(json['properties']),
      sentAt = json['sentAt'];