getCustomJob method

  1. @override
Future<CustomJob> getCustomJob(
  1. GetCustomJobRequest request
)
override

Gets a CustomJob.

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<CustomJob> getCustomJob(GetCustomJobRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getCustomJob case final getCustomJob?) {
    return getCustomJob(request);
  }
  throw UnsupportedError('getCustomJob');
}