modifyMaintenanceTask method

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

Implementation

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