getDevices method

Future<List<Device>> getDevices(
  1. String sdkId,
  2. List<String> deviceIds
)

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();
}