getDomain method

Future<GetDomainResponse> getDomain({
  1. required String domainId,
})

Returns information about a specific domain if it exists.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter domainId : The unique identifier of the Cases domain.

Implementation

Future<GetDomainResponse> getDomain({
  required String domainId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/domains/${Uri.encodeComponent(domainId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetDomainResponse.fromJson(response);
}