modifyDevices method

Future<List<IdWithRev>> modifyDevices(
  1. String sdkId,
  2. List<Device> devices
)

Implementation

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