undeleteDevice method

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

Implementation

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