ChannelMessageTranslateRequest constructor
ChannelMessageTranslateRequest({
- required ChannelType channelType,
- required String channelUrl,
- required int messageId,
- required List<
String> targetLanguages,
Implementation
ChannelMessageTranslateRequest({
required ChannelType channelType,
required String channelUrl,
required int messageId,
required List<String> targetLanguages,
}) : super() {
url =
'${channelType.urlString}/$channelUrl/messages/$messageId/translation';
body = {'target_langs': targetLanguages};
}