deleteDevices method

Future<List<DocIdentifier>> deleteDevices(
  1. String sdkId,
  2. List<Device> devices
)

Implementation

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