getTranslationLanguage method

Get the translation language of the current user.
Return the translation language of the current user.

Implementation

@override
Future<ZoomVideoSdkLiveTranscriptionLanguage> getTranslationLanguage() async {
  var languageString = await methodChannel
      .invokeMethod<String?>('getTranslationLanguage')
      .then<String?>((String? value) => value);

  Map<String, dynamic> languageMap = jsonDecode(languageString!);
  var transcriptionLanguage =
      ZoomVideoSdkLiveTranscriptionLanguage.fromJson(languageMap);
  return transcriptionLanguage;
}