getSupportCountryInfo method

  1. @override
Future<List<ZoomVideoSdkSupportCountryInfo>> getSupportCountryInfo()

Get the list of the country information where the session supports to join by telephone.
Return List of the country information returns if the session supports to join by telephone. Otherwise NULL.

Implementation

@override
Future<List<ZoomVideoSdkSupportCountryInfo>> getSupportCountryInfo() async {
  var countryInfoString = await methodChannel
      .invokeMethod<String?>('getSupportCountryInfo')
      .then<String?>((String? value) => value);

  var countryListJson = jsonDecode(countryInfoString!) as List;
  List<ZoomVideoSdkSupportCountryInfo> countryList = countryListJson
      .map((countryJson) => ZoomVideoSdkSupportCountryInfo.fromJson(countryJson))
      .toList();

  return countryList;
}