getSessionDialInNumbers method

Get the list of dial in numbers supported by session.
If the function succeeds, the return value is the list of the call-in numbers. Otherwise failed.

Implementation

@override
Future<List<ZoomVideoSdkSessionDialInNumberInfo>?> getSessionDialInNumbers() async {
  var dialInNumberString = await methodChannel
      .invokeMethod<String?>('getSessionDialInNumbers')
      .then<String?>((String? value) => value);

  var dialInNumberListJson = jsonDecode(dialInNumberString!) as List;
  List<ZoomVideoSdkSessionDialInNumberInfo> dialInNumberList = dialInNumberListJson
      .map((languageJson) =>
      ZoomVideoSdkSessionDialInNumberInfo.fromJson(languageJson))
      .toList();

  return dialInNumberList;
}