checkWipe method

Future<DynamiteResponse<WipeCheckWipeResponseApplicationJson, void>> checkWipe({
  1. required String token,
})

Check if the device should be wiped.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • token App password.

Status codes:

  • 200: Device should be wiped
  • 404: Device should not be wiped

See:

Implementation

Future<_i1.DynamiteResponse<WipeCheckWipeResponseApplicationJson, void>> checkWipe({required String token}) async {
  final _request = $checkWipe_Request(
    token: token,
  );
  final _response = await _rootClient.httpClient.send(_request);

  final _serializer = $checkWipe_Serializer();
  final _rawResponse =
      await _i1.ResponseConverter<WipeCheckWipeResponseApplicationJson, void>(_serializer).convert(_response);
  return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}