EMTextMessageBody.fromJson constructor
- {required Map map}
Implementation
EMTextMessageBody.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>();
}
}