getOtaTask method

Future<GetOtaTaskResponse> getOtaTask({
  1. required String identifier,
})

Get details of the over-the-air (OTA) task by its task id.

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

Parameter identifier : The over-the-air (OTA) task id.

Implementation

Future<GetOtaTaskResponse> getOtaTask({
  required String identifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/ota-tasks/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetOtaTaskResponse.fromJson(response);
}