tryDecrypt method

Future<MaintenanceTask> tryDecrypt(
  1. String sdkId,
  2. EncryptedMaintenanceTask maintenanceTask
)

Implementation

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