getAssessment method

Future<GetAssessmentResponse> getAssessment({
  1. required String id,
})

Retrieves the status of an on-going assessment.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter id : The assessmentid returned by StartAssessment.

Implementation

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