deleteLicenseWithHttpInfo method

Future<Response> deleteLicenseWithHttpInfo({
  1. String? uuidToken,
})

Deletes license key

Deletes the given license key.

Note: This method returns the HTTP Response.

Parameters:

  • String uuidToken: Used for remote connections to device

Implementation

Future<Response> deleteLicenseWithHttpInfo({
  String? uuidToken,
}) async {
  // ignore: prefer_const_declarations
  final path = uuidToken != null
      ? '${LbSetupEnvironment.getApiEndpoint(iotUuid: uuidToken)}/device/license'
      : '/device/license';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];
  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}