undeleteMaintenanceTask method

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

Implementation

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