setGeolocatorConfigWithHttpInfo method

Future<Response> setGeolocatorConfigWithHttpInfo(
  1. GeolocatorConfig geolocatorConfig, {
  2. String? uuidToken,
})

Edit the Geolocator configuration

Edits the Geolocator configuration.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> setGeolocatorConfigWithHttpInfo(
  GeolocatorConfig geolocatorConfig, {
  String? uuidToken,
}) async {
  // ignore: prefer_const_declarations
  final path = uuidToken != null
      ? '${LbSetupEnvironment.getApiEndpoint(iotUuid: uuidToken)}/network/geolocator/config'
      : '/network/geolocator/config';

  // ignore: prefer_final_locals
  Object? postBody = geolocatorConfig;

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

  const contentTypes = <String>['application/json'];

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