modifyMaintenanceTask method

Future<MaintenanceTask> modifyMaintenanceTask(
  1. String sdkId,
  2. MaintenanceTask entity
)

Implementation

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