upsertExamples method

  1. @override
Future<UpsertExamplesResponse> upsertExamples(
  1. UpsertExamplesRequest request
)
override

Create or update Examples in the Example Store.

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<UpsertExamplesResponse> upsertExamples(
  UpsertExamplesRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_upsertExamples case final upsertExamples?) {
    return upsertExamples(request);
  }
  throw UnsupportedError('upsertExamples');
}