ChannelMessageTranslateRequest constructor Null safety
- {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};
}