getLayout method
Returns the details for the requested layout.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter domainId :
The unique identifier of the Cases domain.
Parameter layoutId :
The unique identifier of the layout.
Implementation
Future<GetLayoutResponse> getLayout({
required String domainId,
required String layoutId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/domains/${Uri.encodeComponent(domainId)}/layouts/${Uri.encodeComponent(layoutId)}',
exceptionFnMap: _exceptionFns,
);
return GetLayoutResponse.fromJson(response);
}