getDevices method
Implementation
Future<List<Device>> getDevices(String sdkId, List<String> deviceIds) async {
final res = await _methodChannel.invokeMethod<String>(
'DeviceApi.getDevices',
{
"sdkId": sdkId,
"deviceIds": jsonEncode(deviceIds.map((x0) => x0).toList()),
}
);
if (res == null) throw AssertionError("received null result from platform method getDevices");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => Device.fromJSON(x1) ).toList();
}