updateIndexEndpoint method

  1. @override
Future<IndexEndpoint> updateIndexEndpoint(
  1. UpdateIndexEndpointRequest request
)
override

Updates an IndexEndpoint.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<IndexEndpoint> updateIndexEndpoint(
  UpdateIndexEndpointRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_updateIndexEndpoint case final updateIndexEndpoint?) {
    return updateIndexEndpoint(request);
  }
  throw UnsupportedError('updateIndexEndpoint');
}