modifyMaintenanceTask method

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

Implementation

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