apiV1LicensesCheckGetWithHttpInfo method

Future<Response> apiV1LicensesCheckGetWithHttpInfo(
  1. String feature, {
  2. String? organizationId,
})

Check feature access

Check if a specific feature is enabled for the user

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV1LicensesCheckGetWithHttpInfo(String feature, { String? organizationId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/licenses/check';

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'feature', feature));
  if (organizationId != null) {
    queryParams.addAll(_queryParams('', 'organizationId', organizationId));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}