deleteDevice method
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);
}