getSafetyLever method

Future<GetSafetyLeverResponse> getSafetyLever({
  1. required String id,
})

Gets information about the specified safety lever.

May throw ResourceNotFoundException.

Parameter id : The ID of the safety lever.

Implementation

Future<GetSafetyLeverResponse> getSafetyLever({
  required String id,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/safetyLevers/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSafetyLeverResponse.fromJson(response);
}