deleteDevicesByIds method

Future<List<DocIdentifier>> deleteDevicesByIds(
  1. String sdkId,
  2. List<IdWithMandatoryRev> entityIds
)

Implementation

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