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