ChatTextMessageBody.fromJson constructor
- required Map map,
Implementation
ChatTextMessageBody.fromJson({required Map map})
: super.fromJson(map: map, type: MessageType.TXT) {
this.content = map["content"] ?? "";
this.targetLanguages = map.getList("targetLanguages");
if (map.containsKey("translations")) {
this.translations = map["translations"]?.cast<String, String>();
}
}