deleteDevice method

Future<DocIdentifier> deleteDevice(
  1. String sdkId,
  2. Device device
)

Implementation

Future<DocIdentifier> deleteDevice(String sdkId, Device device) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DeviceApi.deleteDevice',
		{
			"sdkId": sdkId,
			"device": jsonEncode(Device.encode(device)),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method deleteDevice");
	final parsedResJson = jsonDecode(res);
	return DocIdentifier.fromJSON(parsedResJson);
}